help-make
[Top][All Lists]
Advanced

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

variable value lost with "include" directive


From: Aditya Kher
Subject: variable value lost with "include" directive
Date: Fri, 6 Oct 2006 13:41:53 +0530

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




reply via email to

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