bug-make
[Top][All Lists]
Advanced

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

target-specific variable problem


From: Antonio Norkus
Subject: target-specific variable problem
Date: Tue, 20 Feb 2001 15:51:55 +0000

Hi,

I'm using GNU make 3.74 on a HP 715/50 with HPUX 10.20 and have encountered a
problem with target-specific variable.
Using the following makefile;

---------------------------------------------------
STRING="The default value of a variable"

all:
        @echo $(STRING)

variable:=STRING="A target-specific variable has been set"
variable:
        @echo $(STRING)

----------------------------------------------------

If I invoke....

     $make variable

The result is....

     The default value of a variable

When using UNIX make, the expected result is obtained, ie:

     A target-specific variable has been set

Is this a known problem, or is my syntax wrong from the GNU make perspective?

Kind Regards,
Tony Norkus.





reply via email to

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