Hi.
Is there an elegant way to cancel a command line argument? https://www.gnu.org/software/make/manual/make.html#Override-Directive explains how to override command arguments, but it works only in the current Makefile. The command line argument is still propagated down to sub-makes when a user runs "make FOO=xxx" So, to cancel it for all over the project, I end up with not only "override FOO=" but also "FOO=" everywhere. It is ugly when the top Makefile has a lot of submake call-sites. ------------->--------------- # This cancels FOO only in this Makefile override FOO= # We need more efforts to cancel FOO in sub-makes... sub-make1: $(MAKE) FOO= -C sub1 sub-make2: $(MAKE) FOO= -C sub2 sub-make3: $(MAKE) FOO= -C sub3 ... ------------->8------------------- In my understanding, there is no one-liner solution to cancel it, but it is better to ask in case I am missing something... -- Best Regards Masahiro Yamada