On 11/1/06, Aditya Kher <[EMAIL PROTECTED]> wrote:
digging up old thread.
Just to clarify.. I can do it over multiple lines
like thus:
target_1 : FOO := foo
target_1:  BOO:= boo

but I wanted to avoid that extra line since in my Makefile there would
be plenty of such "extra" lines.

-aditya

Lets say I have following.
 $ cat Makefile
 FOO := whatever
.PHONY : all
 all : target_1 target_2 target_3
 target_1 : FOO := foo # override FOO for this target
 target_2 : FOO := bar # override FOO for this target
 target_% : ; @echo "cd ${FOO} && ls"

Is it possible to set value for more than one variable for a given target ? e.g.

 target_1 : FOO := foo  BOO:= boo
 target_2 : FOO := foo_1  BOO:= boo_1

so that this allows me to set variable values for FOO *and* BOO for
target target_1, target_2 etc.. separately?

The above statement doesnt work  as-is  (I am using GNU Make 3.81-Beta).

Any tweaks? or a neater way perhaps?

--
Aditya Kher
http://kher.org



--
Aditya Kher
http://kher.org


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

Reply via email to