1
0
Fork 0
mirror of https://github.com/Luzifer/3dmodels.git synced 2024-12-23 02:41:19 +00:00
3dmodels/Makefile
Knut Ahlers 6a3dc6c98b
Adjust building to recent OpenJSCAD version
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2022-09-18 00:51:22 +02:00

21 lines
328 B
Makefile

stlfiles := $(patsubst %.jscad,%.stl,$(wildcard *.jscad))
default: $(stlfiles) README.md
### Generators
%.stl:
./node_modules/.bin/jscad "$*.jscad"
README.md:
bash ci/gen_readme.sh
.PHONY: README.md
### Helpers
auto-hook-pre-commit: README.md
git diff --exit-code README.md || git add README.md
node_modules:
npm ci