From eed82c8b6486040cc2815bec24c3974421c3d0df Mon Sep 17 00:00:00 2001 From: Ced Date: Sat, 10 Jun 2023 15:26:46 +0100 Subject: [PATCH] Remove figures compilation from makefile No need to compile figs to pdf anymore, at least to build the books --- book/makefile | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/book/makefile b/book/makefile index b328d93..6aa6fc3 100644 --- a/book/makefile +++ b/book/makefile @@ -11,7 +11,6 @@ chapters = baking basics bread-types flour-types history intro\ non-wheat-sourdough sourdough-starter storing-bread troubleshooting\ wheat-sourdough -src_tables := $(wildcard tables/tables-*.tex) src_figures := $(wildcard figures/fig-*.tex) src_tex := $(foreach directory, $(chapters), $(wildcard $(directory)/*.tex)) @@ -22,7 +21,6 @@ images += $(wildcard images/*/*.png) images += $(foreach directory, $(chapters), $(wildcard $(directory)/*.jpg)) images += $(foreach directory, $(chapters), $(wildcard $(directory)/*.png)) -tgt_figures := $(patsubst %.tex, %.pdf,$(src_figures)) src_all := $(src_tex) $(src_figures) $(src_tables) tex4ebook.cfg book.mk4 $(images) # Default rules for pdf and ebooks, getting overwritten when built in a @@ -92,22 +90,12 @@ build_sans_serif_pdf: book_sans_serif/book_sans_serif.pdf build_ebook: build_serif_ebook build_sans_serif_ebook .PHONY: build_serif_ebook -build_serif_ebook: $(tgt_figures) epub/book.epub epub/book.mobi epub/book.azw3 | make_release_dir +build_serif_ebook: epub/book.epub epub/book.mobi epub/book.azw3 | make_release_dir .PHONY: build_sans_serif_ebook -build_sans_serif_ebook: $(tgt_figures) epub/book_sans_serif.epub \ - epub/book_sans_serif.mobi \ +build_sans_serif_ebook: epub/book_sans_serif.epub epub/book_sans_serif.mobi \ epub/book_sans_serif.azw3 | make_release_dir -.PHONY: export_figures -# Requires that you have docker running on your computer. -export_figures: - cd figures/ && bash export_figures.sh - -.PHONY: figures -figures: $(src_figures) - $(LATEX) $< - .PHONY: check # Goal is not really to have 0 warning reported but we should check we don't # add many and if we do, we know they are false positive