[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: OT help with Make



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
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user