summaryrefslogtreecommitdiff
path: root/Makefile
blob: b64fb39cd49e341d6b4c2a7174559129373d693d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
DESTDIR=build
CONFDIR=conf

SLIC3R=~/opt/Slic3r/bin/slic3r

tiles:
	mkdir -p ${DESTDIR}
	for SUITE in suns moons crowns arms; do \
	    for VALUE in null ace 2 3 4 5; do \
	        openscad -o ${DESTDIR}/tile-$$SUITE-$$VALUE.stl \
		-D suite=\"$$SUITE\" -D value=\"$$VALUE\" src/tile.scad; \
	    done \
	done

coins:
	mkdir -p ${DESTDIR}
	for SUITE in suns moons crowns arms; do \
	    for VALUE in null ace 2 3 4 5; do \
	        openscad -o ${DESTDIR}/coin-$$SUITE-$$VALUE.stl \
		-D suite=\"$$SUITE\" -D value=\"$$VALUE\" src/coin.scad; \
	    done \
	done

dice:
	mkdir -p ${DESTDIR}
	for SUITE in suns moons crowns arms; do \
	    openscad -o ${DESTDIR}/die-$$SUITE.stl \
	    -D suite=\"$$SUITE\" src/die.scad; \
	done

pawns:
	mkdir -p ${DESTDIR}
	for SUITE in suns moons crowns arms; do \
	    openscad -o ${DESTDIR}/pawn-$$SUITE.stl \
	    -D suite=\"$$SUITE\" src/pawn.scad; \
	done

gcode: tiles coins dice
	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 
	for T in ${DESTDIR}/die*; do \
	    ${SLIC3R} --load ${CONFDIR}/dice.ini $$T; \
	done 

all: tiles coins dice pawns