Files
the-sourdough-framework/makefile
Hendrik Kleinwaechter 509092c56e Improve website deployment (#139)
* Fix issue of book not building

* add dependencies

* fix

* test make4ht

* fix cmd

* Use own docker image

* Add label

* fix urls

* Add validate command

* build non mac version

* tmp run

* use smaller tex version

* build full
2023-07-08 10:51:23 +02:00

26 lines
819 B
Makefile

DOCKER_IMAGE := ghcr.io/hendricius/the-sourdough-framework
.PHONY: build_pdf
build_pdf: build_docker_image
docker run -it -v $(PWD):/opt/repo $(DOCKER_IMAGE) /bin/bash -c "cd /opt/repo/book && make"
.PHONY: bake
bake: build_docker_image
docker run -it -v $(PWD):/opt/repo $(DOCKER_IMAGE) /bin/bash -c "cd /opt/repo/book && make bake"
.PHONY: build_docker_image
build_docker_image:
docker build -t $(DOCKER_IMAGE) -f Dockerfile --platform linux/amd64 .
.PHONY: push_docker_image
push_docker_image:
docker push $(DOCKER_IMAGE):latest
.PHONY: website
website:
docker run -it -v $(PWD):/opt/repo $(DOCKER_IMAGE) /bin/bash -c "cd /opt/repo/book && make website"
.PHONY: validate
validate:
docker run -it -v $(PWD):/opt/repo $(DOCKER_IMAGE) /bin/bash -c "cd /opt/repo/book && make -j build_pdf build_serif_ebook"