bug-make
[Top][All Lists]
Advanced

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

RE: [bug #17529] Variable set with $(shell date '+%Y%m%d-%H%M%S') change


From: Terry Jones
Subject: RE: [bug #17529] Variable set with $(shell date '+%Y%m%d-%H%M%S') changes mid-make
Date: Sat, 26 Aug 2006 03:22:17 +0200

Here's another example that may be more illustrative. Given this Makefile:

base = xxx-$(shell date '+%Y%m%d-%H%M%S')

t:
        @echo $(base) && echo $(base) && echo $(base) && echo $(base) && echo 
$(base) && echo $(base) && echo $(base) && echo $(base) && echo $(base) && echo 
$(base) && echo $(base)


I would expect to see all the echoes (i.e., in a single make invocation)
produce the same value. But they don't - see the last set below.

Regards,
Terry


terry:~/s/net/make-3.81 $ ./make -f /tmp/Makefile 
xxx-20060826-031731
xxx-20060826-031731
xxx-20060826-031731
xxx-20060826-031731
xxx-20060826-031731
xxx-20060826-031731
xxx-20060826-031731
xxx-20060826-031731
xxx-20060826-031731
xxx-20060826-031731
xxx-20060826-031731
terry:~/s/net/make-3.81 $ ./make -f /tmp/Makefile 
xxx-20060826-031734
xxx-20060826-031734
xxx-20060826-031734
xxx-20060826-031734
xxx-20060826-031734
xxx-20060826-031734
xxx-20060826-031734
xxx-20060826-031734
xxx-20060826-031734
xxx-20060826-031734
xxx-20060826-031734
terry:~/s/net/make-3.81 $ ./make -f /tmp/Makefile 
xxx-20060826-031736
xxx-20060826-031736
xxx-20060826-031736
xxx-20060826-031736
xxx-20060826-031736
xxx-20060826-031736
xxx-20060826-031736
xxx-20060826-031736
xxx-20060826-031736
xxx-20060826-031736
xxx-20060826-031736
terry:~/s/net/make-3.81 $ ./make -f /tmp/Makefile 
xxx-20060826-031737
xxx-20060826-031737
xxx-20060826-031737
xxx-20060826-031737
xxx-20060826-031737
xxx-20060826-031737
xxx-20060826-031737
xxx-20060826-031737
xxx-20060826-031737
xxx-20060826-031737
xxx-20060826-031737
terry:~/s/net/make-3.81 $ ./make -f /tmp/Makefile 
xxx-20060826-031739
xxx-20060826-031739
xxx-20060826-031739
xxx-20060826-031739
xxx-20060826-031739
xxx-20060826-031739
xxx-20060826-031739
xxx-20060826-031739
xxx-20060826-031739
xxx-20060826-031739
xxx-20060826-031739
terry:~/s/net/make-3.81 $ ./make -f /tmp/Makefile 
xxx-20060826-031740
xxx-20060826-031740
xxx-20060826-031740
xxx-20060826-031740
xxx-20060826-031740
xxx-20060826-031740
xxx-20060826-031740
xxx-20060826-031740
xxx-20060826-031740
xxx-20060826-031740
xxx-20060826-031740
terry:~/s/net/make-3.81 $ ./make -f /tmp/Makefile 
xxx-20060826-031742
xxx-20060826-031742
xxx-20060826-031742
xxx-20060826-031742
xxx-20060826-031742
xxx-20060826-031742
xxx-20060826-031742
xxx-20060826-031742
xxx-20060826-031742
xxx-20060826-031742
xxx-20060826-031742
terry:~/s/net/make-3.81 $ ./make -f /tmp/Makefile 
xxx-20060826-031743
xxx-20060826-031744
xxx-20060826-031744
xxx-20060826-031744
xxx-20060826-031744
xxx-20060826-031744
xxx-20060826-031744
xxx-20060826-031744
xxx-20060826-031744
xxx-20060826-031744
xxx-20060826-031744




reply via email to

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