[MLton-commit] r5552

Vesa Karvonen vesak at mlton.org
Thu May 10 23:57:54 PDT 2007


Generate dummy rules to allow source files to be removed.

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

U   mltonlib/trunk/com/ssh/async/unstable/example/smlbot/Makefile
U   mltonlib/trunk/com/ssh/misc-util/unstable/Makefile

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

Modified: mltonlib/trunk/com/ssh/async/unstable/example/smlbot/Makefile
===================================================================
--- mltonlib/trunk/com/ssh/async/unstable/example/smlbot/Makefile	2007-05-11 03:43:50 UTC (rev 5551)
+++ mltonlib/trunk/com/ssh/async/unstable/example/smlbot/Makefile	2007-05-11 06:57:53 UTC (rev 5552)
@@ -44,9 +44,11 @@
 	echo 'SML_COMPILER mlton' >> $@
 
 $(smlbot-exe) : smlbot.mlb $(mlb-path-map)
-	mlton -stop f -mlb-path-map $(mlb-path-map) $<       \
-	  | sed $$'s#\r##g'                                  \
-	  | awk 'BEGIN { printf "$@ :" } { printf " " $$1 }' \
+	mlton -stop f -mlb-path-map $(mlb-path-map) $<            \
+	  | sed $$'s#\r##g'                                       \
+	  | awk 'BEGIN { srcs = "" ; printf "$@ :" }              \
+	               { srcs = srcs $$1 ":\n" ; printf " " $$1 } \
+	           END { printf "\n" srcs }'                      \
 	  > $@.dep
 	mlton -mlb-path-map $(mlb-path-map)                  \
 	      -prefer-abs-paths true                         \

Modified: mltonlib/trunk/com/ssh/misc-util/unstable/Makefile
===================================================================
--- mltonlib/trunk/com/ssh/misc-util/unstable/Makefile	2007-05-11 03:43:50 UTC (rev 5551)
+++ mltonlib/trunk/com/ssh/misc-util/unstable/Makefile	2007-05-11 06:57:53 UTC (rev 5552)
@@ -59,9 +59,11 @@
 	echo 'SML_COMPILER mlton' >> $@
 
 $(test-exe) : test.mlb $(mlb-path-map) $(nlffi-mlb)
-	mlton -stop f -mlb-path-map $(mlb-path-map) $<       \
-	  | sed $$'s#\r##g'                                  \
-	  | awk 'BEGIN { printf "$@ :" } { printf " " $$1 }' \
+	mlton -stop f -mlb-path-map $(mlb-path-map) $<            \
+	  | sed $$'s#\r##g'                                       \
+	  | awk 'BEGIN { srcs = "" ; printf "$@ :" }              \
+	               { srcs = srcs $$1 ":\n" ; printf " " $$1 } \
+	           END { printf "\n" srcs }'                      \
 	  > $@.dep
 	mlton -mlb-path-map $(mlb-path-map)                  \
 	      -prefer-abs-paths true                         \




More information about the MLton-commit mailing list