mirror of
https://github.com/hendricius/the-sourdough-framework
synced 2025-11-09 20:51:12 -06:00
* 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
26 lines
819 B
Makefile
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"
|