mirror of
https://github.com/Luzifer/3dmodels.git
synced 2024-12-23 02:41:19 +00:00
21 lines
448 B
Makefile
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
|