From 9adcca73ebe839c6185b95fb986286d53bd9c2cf Mon Sep 17 00:00:00 2001 From: Ced Date: Fri, 27 Oct 2023 21:14:50 +0100 Subject: [PATCH] Remove unused targets in main makefile Reorder logically and comment --- makefile | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/makefile b/makefile index b67496a..6badc0e 100644 --- a/makefile +++ b/makefile @@ -2,29 +2,28 @@ 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" +.PHONY: print_os_version start_shell printvars show_tools_version +# 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 -website: - $(DOCKER_CMD) "cd /opt/repo/book && make website" +# Books/website +# Quicker run for each commit, shall catch most problems validate: $(DOCKER_CMD) "cd /opt/repo/book && make -j build_serif_pdf build_ebook" -mrproper: - $(DOCKER_CMD) "cd /opt/repo/book && make mrproper" +bake: + $(DOCKER_CMD) "cd /opt/repo/book && make bake" +website: + $(DOCKER_CMD) "cd /opt/repo/book && make website" + +# Debug helpers show_tools_version: $(DOCKER_CMD) "cd /opt/repo/book && make show_tools_version"