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
_______________________________________________
Bug-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-make