On 5/4/06, Martin d'Anjou <[EMAIL PROTECTED]> wrote: ...
$(shell mkdir -p m && echo VAR=Hello > m/m.mk) .INCLUDE_DIRS=m include m.mk all: echo $(VAR)% make Makefile:4: m.mk: No such file or directory make: *** No rule to make target `m.mk'. Stop.
The .INCLUDE_DIRS variable only permits inspection of the list of directories, not alteration of it. To alter the list of directories use the -I or --include-dir option on the command line. (While section 5.7.3 of the info pages seem to imply that setting the MAKEFLAGS variable in a Makefile should cause the listed option to be parsed immediately, it appears that it really is restricted to affecting recursive invocations of make. So, there's no way for a Makefile to modify the include path used in its own parsing except by recursively invoking itself.) Philip Guenther _______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
