diff en/Makefile @ 45:6b7b0339e7d6

Don't rerun examples unnecessarily.
author Bryan O'Sullivan <bos@serpentine.com>
date Sun, 23 Jul 2006 23:34:24 -0700
parents 012df94a02fe
children dd657c4d3a47
line wrap: on
line diff
--- a/en/Makefile	Sun Jul 23 23:25:52 2006 -0700
+++ b/en/Makefile	Sun Jul 23 23:34:24 2006 -0700
@@ -17,7 +17,6 @@
 	mq-stack.svg
 
 example-sources := \
-	examples/run-example \
 	examples/daily.files \
 	examples/hook.simple \
 	examples/hook.ws \
@@ -111,8 +110,11 @@
 
 examples: examples/.run
 
-examples/.run: $(example-sources)
-	cd examples && ./run-example
+examples/.run: $(example-sources:%=%.run)
+	touch examples/.run
+
+examples/%.run: examples/% examples/run-example
+	cd examples && ./run-example $(notdir $<)
 
 build_id.tex: $(wildcard ../.hg/00changelog.[id])
 	echo -n $(hg_id) > build_id.tex