aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: a47a4191c056221f32c660a45154c533e3974408 (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
SCAD=openscad

STLOPTS= --export-format binstl
PNGOPTS= --viewall --autocenter --imgsize 400,400 --render

SRC = $(wildcard *.scad)

STL = $(SRC:.scad=.stl)
PNG = $(SRC:.scad=.png)

_default: stl

all: clean stl png

stl: $(STL)

gridfinity.stl: gridfinity.scad
	@echo

%.stl: %.scad
	@echo [ STL ] $<
	@$(SCAD) $(STLOPTS) -o $@ $<


png: $(PNG)

gridfinity.png: gridfinity.scad
	@echo

%.png: %.scad
	@echo [ PNG ] $<
	@$(SCAD) $(SCADOPTS) -o $@ $<

.PHONY: clean
clean:
	@rm -f *.stl
	@rm -f *.png