Target-specific variables work like this:

VAR = 0

all : target1 target2

target1 : VAR = 1
target2 : VAR = 2

% :
        echo VAR is ${VAR}


What you want is something like this:

target2 :
        $(MAKE) VAR=4 target1

The $(MAKE) is slightly magic; Make knows you're calling it
recursively and (for example) runs that command even with -n.

You can use @$(MAKE) ... if you don't want the "make" command echo'd
to the screen.


_______________________________________________
geda-user mailing list
[email protected]
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user

Reply via email to