chiark / gitweb /
Makefile: add more to .PRECIOUS to defeat daft make
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 10 Jan 2015 22:48:44 +0000 (22:48 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 10 Jan 2015 22:48:44 +0000 (22:48 +0000)
Makefile

index 1cabe5bb261f4948a000bd787f8fe8a942be0455..937bcc9dc95ceeea0c2cb096f35c5e99c1af6afb 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -71,6 +71,7 @@ KNIFEBLOCK_TEMPLATE_FILES=\
 
 knifeblock-knives-templates knifeblock.stl: $(KNIFEBLOCK_TEMPLATE_FILES)
 
+.PRECIOUS: knifeblock-knives-t%.dxf
 knifeblock-knives-t%.dxf: knifeblock-knives-filter knifeblock-knives-trace.fig
                ./$< $(notdir $*) <$(filter %.fig, $^) >$@.tmp.fig
                fig2dev -D -30 -L eps <$@.tmp.fig >$@.tmp.eps
@@ -82,6 +83,7 @@ PANDEMICCOUNTER_DXFS=$(foreach l,$(PANDEMICCOUNTER_LETTERS), \
 
 pandemic-counter-letters pandemic-counter%.stl: $(PANDEMICCOUNTER_DXFS)
 
+.PRECIOUS: pandemic-counter-l%.eps
 pandemic-counter-l%.eps: pandemic-counter-letters.fig
                fig2dev -D +$(notdir $*) -L eps <$< >$@.tmp
                @mv -f $@.tmp $@
@@ -92,6 +94,7 @@ pandemic-counter-l%.eps: pandemic-counter-letters.fig
 %:             %.pl
                ./$< >$@.tmp && mv -f $@.tmp $@
 
+.PRECIOUS: %.auto.scad
 %.auto.scad: $(PLAY)/toplevel-make Makefile $(PLAY)/toplevel-find
                @echo ' write $@'
                $< $@ >$@.tmp