comparison 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
comparison
equal deleted inserted replaced
44:012df94a02fe 45:6b7b0339e7d6
15 15
16 image-sources := \ 16 image-sources := \
17 mq-stack.svg 17 mq-stack.svg
18 18
19 example-sources := \ 19 example-sources := \
20 examples/run-example \
21 examples/daily.files \ 20 examples/daily.files \
22 examples/hook.simple \ 21 examples/hook.simple \
23 examples/hook.ws \ 22 examples/hook.ws \
24 examples/mq.qinit-help \ 23 examples/mq.qinit-help \
25 examples/mq.diff \ 24 examples/mq.diff \
109 %.eps: %.svg 108 %.eps: %.svg
110 inkscape -E $@ $< 109 inkscape -E $@ $<
111 110
112 examples: examples/.run 111 examples: examples/.run
113 112
114 examples/.run: $(example-sources) 113 examples/.run: $(example-sources:%=%.run)
115 cd examples && ./run-example 114 touch examples/.run
115
116 examples/%.run: examples/% examples/run-example
117 cd examples && ./run-example $(notdir $<)
116 118
117 build_id.tex: $(wildcard ../.hg/00changelog.[id]) 119 build_id.tex: $(wildcard ../.hg/00changelog.[id])
118 echo -n $(hg_id) > build_id.tex 120 echo -n $(hg_id) > build_id.tex
119 121
120 clean: 122 clean: