help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to detect spaces in paths


From: Paul Smith
Subject: Re: How to detect spaces in paths
Date: Wed, 15 Dec 2021 16:08:59 -0500
User-agent: Evolution 3.36.5-0ubuntu1

On Wed, 2021-12-15 at 08:49 -0800, David Boyce wrote:
> $(if $(filter-out 1,$(words "$(PATH_TO_CHECK)")),$(error spaces found))

Heh, cute!  Good idea.  You could also just use:

  $(if $(filter-out 1,$(words x$(PATH_TO_CHECK))),$(error spaces found))

No need to use quotes and you don't need anything at the end; you just
don't want it to be _actuallY_ empty.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]