help-make
[Top][All Lists]
Advanced

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

evaluated target specific variable


From: andre maute
Subject: evaluated target specific variable
Date: Fri, 19 Mar 2004 20:44:45 +0100
User-agent: KMail/1.6

hello,

consider the following Makefile, working under linux, make 3.80

------------------------------
test2: OBJECTS=$(shell ls a.o)
test2: $(shell ls a.o)
test2: $(OBJECTS)
        echo $(OBJECTS)
        touch test2
-------------------------------

the following commands

# > touch a.o
# > make
# > make
# > touch a.o
# > make

the first and third time make is issued the echo happens, well that's the 
intended behaviour. If you remove the second test2 target, only the first
make will issue the echo, why?

My real shell command is quite long, and i don't want to write it twice.

best regards
Andre Maute




reply via email to

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