bug-make
[Top][All Lists]
Advanced

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

Re: Why is --include-dir option effective only in sub make ?


From: Paul Smith
Subject: Re: Why is --include-dir option effective only in sub make ?
Date: Thu, 13 Sep 2018 08:34:52 -0400

On Thu, 2018-09-13 at 14:18 +0900, Masahiro Yamada wrote:
> I wonder why --include-dir does not become
> effective in the current Makefile.

In order for this to work, the MAKEFLAGS variable would have to be re-
parsed every time MAKEFLAGS was set in the makefile and that's not how
it works: MAKEFLAGS is re-parsed once after all the makefiles are read.

There are various potential oddities and unexpected outcomes if the
variable is re-parsed every time, just as this unexpected outcome (not
being able to add --include-dir and have it take effect immediately) if
the variable is NOT re-parsed every time.

In this case, could you just write:

  include foo/inc.mk

directly?



reply via email to

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