2023-09-07 19:53:56 -05:00
|
|
|
SRC_FILES := $(wildcard ./src/*.scad)
|
|
|
|
SRC_FILES := $(filter-out ./src/blown-up-demo.scad, $(SRC_FILES))
|
|
|
|
SRC_FILES := $(filter-out ./src/components.scad, $(SRC_FILES))
|
|
|
|
SRC_FILES := $(filter-out ./src/roundedcube.scad, $(SRC_FILES))
|
|
|
|
all: $(SRC_FILES)
|
|
|
|
mkdir -p ./build
|
2023-08-24 23:23:41 -05:00
|
|
|
for file in $^ ; do \
|
|
|
|
openscad -o $${file}.stl $${file} ; \
|
2023-09-07 19:53:56 -05:00
|
|
|
mv $${file}.stl ./build/ ; \
|
2023-08-24 23:23:41 -05:00
|
|
|
done
|
2023-09-07 19:53:56 -05:00
|
|
|
zip ./build/buildable-stick-system-`git describe --dirty`-stls.zip ./build/*
|
2023-08-24 23:23:41 -05:00
|
|
|
|
|
|
|
clean:
|
2023-09-07 19:53:56 -05:00
|
|
|
rm -rf ./build
|