chiark / gitweb /
Makefile: better handling of slic3r config
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 10 Aug 2012 15:29:39 +0000 (16:29 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 10 Aug 2012 15:29:39 +0000 (16:29 +0100)
Makefile

index 628cbf1..47cfc9f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,11 +2,13 @@
 HRR=/home/reprap
 SLIC3R=$(HRR)/Slic3r/bin/slic3r
 
+CONFIG=slic3r-config.ini
+
 default:
 
 %.stl:         %.scad
                openscad -o $@ $<
 
-%.gcode:       %.stl
-               $(SLIC3R) --load slic3r-config.ini $< --output $@
+%.gcode:       $(CONFIG) %.stl
+               $(SLIC3R) --load $^ --output $@