changeset 109:0e5c059a7658

added diagnosis for GNUMake's $(eval ...), $(shell ...) and $(eval ... $(shell ...))
author thomask
date Sat, 06 Nov 2004 14:07:01 +0000
parents aa6478748245
children 3d8171d90b6b
files Makefile makefile_porting.txt
diffstat 2 files changed, 12 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Sat Nov 06 00:29:33 2004 +0000
+++ b/Makefile	Sat Nov 06 14:07:01 2004 +0000
@@ -221,6 +221,12 @@
 %.diagnose.$(ext_run) : %.$(ext_source) basic_tools
 	# destination: $@
 	# source: $<
+	$(eval y_tmp = OK)
+	# eval: $(y_tmp)
+	# shell:
+	@$(ECHO) $(shell $(ECHO) "OK")
+	$(eval y_tmp = $(shell $(ECHO) "OK"))
+	# eval.shell: $(y_tmp)
 	$(eval z_name = $(subst .diagnose.$(ext_run),,$@))
 	# name: $(z_name)
 	# extract__: $(extract__)
--- a/makefile_porting.txt	Sat Nov 06 00:29:33 2004 +0000
+++ b/makefile_porting.txt	Sat Nov 06 14:07:01 2004 +0000
@@ -3,6 +3,10 @@
 = = = = = stdout = = = = =
 # destination: run/command_line_debug_01.diagnose.exe
 # source: run/command_line_debug_01.d
+# eval: OK
+# shell:
+OK
+# eval.shell: OK
 # name: run/command_line_debug_01
 # extract__: ./extract__
 # extract__.cmd: ./extract__ __DSTRESS_DFLAGS__ < run/command_line_debug_01.d
@@ -18,6 +22,6 @@
 # dmd.return: 0
 # for analyse_run diagnosis: '@if' -> 'if' in 'define analyse_run' (line 185)
 PASS:  run/command_line_debug_01
- 
-= = = = =  log.txt = = = = =
+
+= = = = = log.txt = = = = =
 gcc obj/command_line_debug_01.o -o run/command_line_debug_01.diagnose.exe -lphobos -lpthread -lm