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 94145f57bf
Add README generator
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2020-01-03 15:38:04 +01:00

21 lines
448 B
Makefile

sourcefiles := $(wildcard *.jscad)
default: $(sourcefiles) README.md
### Generators
%.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
docker-build:
docker build -q -f ci/Dockerfile.compile -t registry.local/openjscad:cli ci