bug-make
[Top][All Lists]
Advanced

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

Re: Problem with GNU Make (3.81, probably newer) with stacking --include


From: Paul Smith
Subject: Re: Problem with GNU Make (3.81, probably newer) with stacking --include-dir=...
Date: Wed, 11 Jun 2014 14:02:41 -0400

On Wed, 2014-06-11 at 13:45 -0400, Paul Smith wrote:
> Unfortunately in older versions of make the option and argument
> are left as two separate words:
> 
>   $ echo 'a:;: $(MAKEFLAGS)' | make-3.81 -f- -I/usr/include -I/bin
>   : I /usr/include -I /bin
> 
> which makes it much more difficult to remove them.

Sorry, pushed send too soon.

One idea would be something like this:

  MAKEFLAGS := $(filter-out -,$(filter-out -I%,$(subst -I ,-I,-$(MAKEFLAGS)))

which is gross for sure but should work.




reply via email to

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