chiark
/
gitweb
/
~ianmdlvl
/
reprap-play.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
949c67d
)
Makefile use PRECIOUS
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Thu, 20 Sep 2012 09:27:55 +0000
(10:27 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Thu, 20 Sep 2012 09:27:55 +0000
(10:27 +0100)
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index 317fe3987b334c153c4819ce5356e7be6eb68439..feb5c2876ea4697a8194869f9e65cb471600e797 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-19,10
+19,12
@@
default:
-include .*.d
%.stl: %.scad
-include .*.d
%.stl: %.scad
- openscad -d .$@.d -o $@ $<
+ openscad -d .$@.d -o $@.tmp $<
+ @mv -f $@.tmp $@
%.gcode: $(CONFIG) %.stl
%.gcode: $(CONFIG) %.stl
- $(SLIC3R) --load $^ --output $@
+ $(SLIC3R) --load $^ --output $@.tmp
+ @mv -f $@.tmp $@
#%.gcode: %.stl
# $(SKEINFORGE) $<
#%.gcode: %.stl
# $(SKEINFORGE) $<
@@
-37,5
+39,7
@@
dovecliptest.stl: doveclip.scad
$< $@ >$@.tmp
@mv -f $@.tmp $@
$< $@ >$@.tmp
@mv -f $@.tmp $@
+.PRECIOUS: %.stl %.gcode
+
clean:
rm -f *~ *.stl *.auto.scad *.gcode .*.d
clean:
rm -f *~ *.stl *.auto.scad *.gcode .*.d