hello, world\n

I'm reading 6.10, Target specific variable values:

   target ... : variable-assignment

This works fine for setting a single variable, i.e.

  foo Foo: CFLAGS = -DMUMBLE

However, I also need to set some more variables, e.g. I'd like to say

 foo Foo: CFLAGS = -DMUBMLE, LDFLAGS = -DFROB, YFLAGS = bar baz

For now I simply repeat the targets,

  foo Foo: CFLAGS = -DMUMBLE
  foo Foo: LDFLAGS = -DFROB
  foo Foo: YFLAGS = bar baz

This does work, but it's somewhat ugly because my list of targets
(foo Foo) actually consists of up to one hundred separate targets
and repeating them leads to considerable Makefile bloat... In the
spirit of avoiding redundancy, is there a way to do what I want
or am I SOL?

I realize there's the problem of "What's the delimiter between diffenent
variable assignments" (comma in my example). But maybe I've overseen
something. If not, Paul may treat this mail as a feature-request :-)


Regards,

        Jens
-- 
Jens Schweikhardt  http://www.schweikhardt.net/
SIGSIG -- signature too long (core dumped)

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

Reply via email to