help-make
[Top][All Lists]
Advanced

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

Re: Flag --no-builtin-rules etc. just for this makefile (no flag inherit


From: R. Diez
Subject: Re: Flag --no-builtin-rules etc. just for this makefile (no flag inheritance)
Date: Sat, 18 Apr 2020 19:07:06 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0


MAKEFLAGS is actually the solution. You can *add* to it and the flags take 
effect.

Thanks for the trick.

Unfortunately, the filtering is still a big issue in practice. If you take a look at OpenWrt's makefile, you will see that it is a huge beast with many contributors. The same is true for other projects.

But even if you have a smaller project, it is a pain having to remember every 
time that you need to filter/restore your MAKEFLAGS for every sub-make.

It would be much better if GNU Make could do that automatically, like it does 
for settings like .ONESHELL .

Regards,
  rdiez


reply via email to

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