2026-08-18 12:16:04 +02:00
|
|
|
.PHONY: build check currency clean release-build release-check image-build
|
2026-08-17 15:42:00 +02:00
|
|
|
|
|
|
|
|
# Publication targets. Source of truth is always the upstream repo; pages here
|
|
|
|
|
# are generated and must never be hand-edited.
|
2026-08-18 12:16:04 +02:00
|
|
|
SRC_NETKINGDOM ?= ../net-kingdom
|
2026-08-17 15:42:00 +02:00
|
|
|
|
|
|
|
|
build:
|
2026-08-18 12:16:04 +02:00
|
|
|
python3 tools/build_site.py publication.json --output build
|
|
|
|
|
|
|
|
|
|
check:
|
|
|
|
|
python3 -m unittest discover -s tests -p 'test_*.py'
|
|
|
|
|
python3 -m py_compile tools/render.py tools/build_site.py tools/check_currency.py tools/verify_release.py
|
|
|
|
|
git diff --check
|
|
|
|
|
|
|
|
|
|
currency:
|
|
|
|
|
python3 tools/check_currency.py publication.json
|
2026-08-17 15:42:00 +02:00
|
|
|
|
|
|
|
|
clean:
|
|
|
|
|
rm -rf build
|
2026-08-18 12:16:04 +02:00
|
|
|
|
|
|
|
|
release-check:
|
|
|
|
|
python3 tools/verify_release.py build
|
|
|
|
|
python3 tools/check_currency.py publication.json
|
|
|
|
|
|
|
|
|
|
release-build: clean build release-check
|
|
|
|
|
|
|
|
|
|
image-build: release-check
|
|
|
|
|
@test -n "$(IMAGE_REF)" || (echo "IMAGE_REF is required" >&2; exit 2)
|
|
|
|
|
docker build \
|
|
|
|
|
--file Containerfile \
|
|
|
|
|
--target local-artifact \
|
|
|
|
|
--build-arg VCS_REVISION=$$(git rev-parse HEAD) \
|
|
|
|
|
--tag $(IMAGE_REF) .
|