make extras to make models in extras [box only]
[clinton/prusa3.git] / box_frame / Makefile
CommitLineData
92eecbb1
VAH
1#openscad -o output/bushing.stl bushing.scad
2
3INCLUDES = $(wildcard inc/*.scad)
4
5MODELS = $(filter-out configuration.scad, $(wildcard *.scad))
6
7STL_FILES_1 = $(foreach src, $(MODELS),output/$(src))
8STL_FILES = $(STL_FILES_1:%.scad=%.stl)
9
10all: $(STL_FILES)
11
06ec233c
VAH
12MODELS_EXTRAS = $(wildcard extras/*.scad)
13STL_EXTRAS_1 = $(foreach src, $(MODELS_EXTRAS),output/$(src))
14STL_EXTRAS = $(STL_EXTRAS_1:%.scad=%.stl)
15
16extras: $(STL_EXTRAS)
17
92eecbb1
VAH
18output/%.stl: %.scad $(INCLUDES) configuration.scad
19 openscad -o $@ $<
0fe64cc4
VAH
20
21clean:
06ec233c 22 rm output/*.stl output/*.gcode output/extras/*.stl output/extras/*.gcode