1
0
Fork 0
mirror of https://github.com/Luzifer/3dmodels.git synced 2024-12-23 02:41:19 +00:00
3dmodels/Makefile

22 lines
328 B
Makefile
Raw Normal View History

stlfiles := $(patsubst %.jscad,%.stl,$(wildcard *.jscad))
2020-01-03 14:19:33 +00:00
default: $(stlfiles) README.md
### Generators
2020-01-03 14:19:33 +00:00
%.stl:
./node_modules/.bin/jscad "$*.jscad"
2020-01-03 14:19:33 +00:00
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