build improvements, create zip file

This commit is contained in:
Brian S. Stephan 2023-09-07 19:53:56 -05:00
parent fddb5d450e
commit 3b3b857568
Signed by: bss
GPG Key ID: 3DE06D3180895FCB

View File

@ -1,11 +1,14 @@
SRCDIR = ./src
all: $(SRCDIR)/*
mkdir -p build
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
for file in $^ ; do \
openscad -o $${file}.stl $${file} ; \
mv $${file}.stl build ; \
mv $${file}.stl ./build/ ; \
done
zip ./build/buildable-stick-system-`git describe --dirty`-stls.zip ./build/*
clean:
rm build/*.stl
rmdir build
rm -rf ./build