bug-make
[Top][All Lists]
Advanced

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

Re: Missing feature gnumake?


From: Paul D. Smith
Subject: Re: Missing feature gnumake?
Date: Thu, 16 Oct 2003 12:41:03 -0400

Please include your problem report in plain text in your mail; if you
want to include a tar.gz attachment with sample code that's fine, but at
least the problem description should be in plaintext.  It's a big pain
to unpack the attachment before we even have a clue what the problem
is.

Anyway, you're missing this important note in the GNU make manual
describing how target-specific variables work:

> [...] As with automatic variables, these values are only available
> within the context of a target's command script (and in other
> target-specific assignments).

So, your lines like this:

> sd:   O = objs
>
> $(O)/sdlcmain.o: $(H)/sdlcmain.h sdlcmain.c

will not do what you expect: the target-specific value of $(O) is not in
effect during the parsing of the target or prerequisites, it's only in
effect during the command script.


I'm quite sure that they have this same limitation in Solaris make, as
well.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist




reply via email to

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