Commit | Line | Data |
---|---|---|
74650040 AR |
1 | INCLUDES = $(wildcard src/inc/*.scad) |
2 | MODELS = $(patsubst src/%,%,$(wildcard src/*.scad)) | |
3 | ||
4 | STL_FILES_1 = $(foreach src, $(MODELS),output/$(src)) | |
5 | STL_FILES = $(STL_FILES_1:%.scad=%.stl) | |
6 | ||
7 | all: $(STL_FILES) | |
8 | ||
9 | output/%.stl: src/%.scad $(INCLUDES) configuration.scad | |
10 | mkdir -p output | |
11 | openscad -o $@ $< |