aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorElena of Valhalla'' Grandi <valhalla@trueelena.org>2013-12-02 19:25:20 +0100
committerElena of Valhalla'' Grandi <valhalla@trueelena.org>2013-12-02 19:25:20 +0100
commitb816562bbdbcf429b034166169170a6c000508e9 (patch)
tree15f25e95b9c9dec562e22aec6b297b96d69f98b3 /Makefile
parent1db4e5a7704d14020bd3a21de22188757311779e (diff)
generate gcode from Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 880eb7e..65700db 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,8 @@
DESTDIR=build
+CONFDIR=conf
+
+SLIC3R=~/opt/Slic3r/bin/slic3r
tiles:
mkdir -p ${DESTDIR}
@@ -19,4 +22,12 @@ coins:
done \
done
+gcode: tiles coins
+ for T in ${DESTDIR}/tile*; do \
+ ${SLIC3R} --load ${CONFDIR}/tiles.ini $$T; \
+ done
+ for T in ${DESTDIR}/coin*; do \
+ ${SLIC3R} --load ${CONFDIR}/coins.ini $$T; \
+ done
+
all: tiles coins