Loading...

help-make@gnu.org

[Prev] Thread [Next]  |  [Prev] Date [Next]

variable value lost with "include" directive Aditya Kher Fri Oct 06 06:00:40 2006

I am having something like below:

$pwd/Makefile:

VPATH:= ./foo:./boo
include ../../bin/Makefile


and in ../../bin/Makefile:

VPATH+=../include

target1:include_file1 file_from_directory_foo file_from_directory_boo
<TAB>gcc $^


When I attempt running in $pwd

%gmake target_1

It complains about include_file not found.
I suspect this is beacuse the value of VPATH is not carried through
when I include another Makefile

Am I missing something?

--
Aditya Kher
http://kher.org


_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/help-make