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
448 B
Makefile
Raw Normal View History

2020-01-03 14:19:33 +00:00
sourcefiles := $(wildcard *.jscad)
default: $(sourcefiles) README.md
### Generators
2020-01-03 14:19:33 +00:00
%.jscad: docker-build
docker run --rm -i -v "$(CURDIR):$(CURDIR)" -w "$(CURDIR)" registry.local/openjscad:cli "$@"
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
2020-01-03 14:19:33 +00:00
docker-build:
docker build -q -f ci/Dockerfile.compile -t registry.local/openjscad:cli ci