Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
$(MAKE) $(addsuffix .auto.stl, $(shell $(DUTILS)/toplevel-find $*))
i=mv -f $@.tmp $@
+o= >$@.tmp && $i
-include .*.d
AUTOBASE=$(shell echo $(1) | perl -pe 's/,\w+\.auto$$//')
%: %.cpp
- cpp -nostdinc -P <$< >$@.tmp && $i
+ cpp -nostdinc -P <$< $o
funcs.scad: diziet-utils/funcs.scad.cpp
- cpp -nostdinc -P $< >$@.tmp && $i
+ cpp -nostdinc -P $< $o
%.gcode: manual-gcode-generator %.m-g
- $(CWD)/$^ >$@.tmp && $i
+ $(CWD)/$^ $o
%.dxf: %.eps
pstoedit -dt -f "dxf: -polyaslines -mm" $< $@
%: %.pl
- ./$< >$@.tmp && $i
+ ./$< $o
%: %.m4
$(M4) -P >$@.tmp $< && $i