[Top][All Lists]

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

Re: .INCLUDE_DIRS question

From: Philip Guenther
Subject: Re: .INCLUDE_DIRS question
Date: Thu, 4 May 2006 15:05:18 -0600

On 5/4/06, Martin d'Anjou <address@hidden> wrote:
$(shell mkdir -p m && echo VAR=Hello > m/
        echo $(VAR)

% make
Makefile:4: No such file or directory
make: *** No rule to make target `'.  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

reply via email to

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