mirror of
https://github.com/hendricius/the-sourdough-framework
synced 2025-11-08 04:01:11 -06:00
* Fix #372 and add booklet to website/repo This adds the design TLDR version to the README and website * Make less verbose * Remove booklet from source
53 lines
1.3 KiB
Makefile
53 lines
1.3 KiB
Makefile
.DEFAULT_GOAL := build_pdf
|
|
|
|
DOCKER_IMAGE := ghcr.io/hendricius/the-sourdough-framework
|
|
DOCKER_CMD := docker run --rm -it -v $(PWD):/opt/repo --platform linux/x86_64 $(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
|
|
.PHONY: build_serif_pdf build_ebook
|
|
|
|
# Dockers targets
|
|
build_docker_image:
|
|
docker build -t $(DOCKER_IMAGE) -f Dockerfile --progress=plain .
|
|
|
|
push_docker_image: build_docker_image
|
|
docker push $(DOCKER_IMAGE):latest
|
|
|
|
# Books/website
|
|
serif_pdf:
|
|
$(DOCKER_CMD) "cd /opt/repo/book && make serif_pdf"
|
|
|
|
ebook:
|
|
$(DOCKER_CMD) "cd /opt/repo/book && make ebook"
|
|
|
|
pdf:
|
|
$(DOCKER_CMD) "cd /opt/repo/book && make"
|
|
|
|
bake:
|
|
$(DOCKER_CMD) "cd /opt/repo/book && make bake"
|
|
|
|
website:
|
|
$(DOCKER_CMD) "cd /opt/repo/book && make website"
|
|
|
|
mrproper:
|
|
$(DOCKER_CMD) "cd /opt/repo/book && make mrproper"
|
|
|
|
# Debug helpers
|
|
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
|
|
|
|
# Old names for backward compatibility
|
|
build_serif_pdf: serif_pdf
|
|
build_ebook: ebook
|
|
build_pdf: pdf
|