mirror of
https://github.com/Luzifer/3dmodels.git
synced 2024-12-22 18:31:19 +00:00
21 lines
328 B
Makefile
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
|