Files
the-sourdough-framework/makefile
Ced b22793f57e Simplify verify target
Little value in building the sans-serif pdf... can only fails if a font
is missing.
2023-10-27 21:05:21 +01:00

39 lines
1.0 KiB
Makefile

DOCKER_IMAGE := ghcr.io/hendricius/the-sourdough-framework
DOCKER_CMD := docker run -it -v $(PWD):/opt/repo $(DOCKER_IMAGE) /bin/bash -c
.PHONY: bake build_pdf build_docker_image push_docker_image validate website
.PHONY: print_os_version start_shell printvars show_tools_version mrproper
build_pdf:
"cd /opt/repo/book && make"
bake:
$(DOCKER_CMD) "cd /opt/repo/book && make bake"
build_docker_image:
docker build -t $(DOCKER_IMAGE) -f Dockerfile --progress=plain .
push_docker_image: build_docker_image
docker push $(DOCKER_IMAGE):latest
website:
$(DOCKER_CMD) "cd /opt/repo/book && make website"
validate:
$(DOCKER_CMD) "cd /opt/repo/book && make -j build_serif_pdf build_ebook"
mrproper:
$(DOCKER_CMD) "cd /opt/repo/book && make mrproper"
show_tools_version:
$(DOCKER_CMD) "cd /opt/repo/book && make show_tools_version"
printvars:
$(DOCKER_CMD) "cd /opt/repo/book && make printvars"
print_os_version:
$(DOCKER_CMD) "cat /etc/*release"
start_shell:
docker run -it -v $(PWD):/opt/repo $(DOCKER_IMAGE) /bin/bash