chiark / gitweb /
Makefile do dependency for %.slic3r
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 19 Oct 2012 18:32:09 +0000 (19:32 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 19 Oct 2012 18:32:09 +0000 (19:32 +0100)
Makefile

index 2c677dc..cf45391 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -30,8 +30,12 @@ default:
                @rm .$@.d.tmp
                mv -f $*.tmp.stl $@
 
-%.gcode:       $(CONFIG) %.stl
-               $(SLIC3R) --load $^ --ignore-nonexistent-config --load $*.slic3r --output $@.tmp
+%.slic3r:
+
+%.gcode:       %.stl %.slic3r $(CONFIG)
+               $(SLIC3R) --load $(CONFIG) \
+                       --ignore-nonexistent-config --load $*.slic3r \
+                       --output $@.tmp $<
                @mv -f $@.tmp $@
 
 #%.gcode:      %.stl