From 91b073e0fd1d5b332578db7fff151896484e594a Mon Sep 17 00:00:00 2001 From: Ced Date: Wed, 26 Mar 2025 10:30:52 +0000 Subject: [PATCH] Fix dependencies in makefile - Add the tex4ht workaround - define src_recipe before adding it to src_tex - have vars.tex as dependencies for figures even if we use it only for standalone --- book/makefile | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/book/makefile b/book/makefile index 43742f1..f4c2b60 100644 --- a/book/makefile +++ b/book/makefile @@ -35,21 +35,21 @@ chapters = baking basics bread-types cover flour-types history intro mix-ins\ non-wheat-sourdough sourdough-starter storing-bread troubleshooting\ wheat-sourdough glossary -# Actual book text and LaTeX code {{{ -src_tex := $(foreach directory, $(chapters), $(wildcard $(directory)/*.tex)) -src_tex += book.tex book_sans_serif.tex references.bib figures/vars.tex -src_tex += supporters.csv sourdough.sty colors.tex abbreviations.tex -src_tex += $(src_recipes) -# }}} - # Tables and TikZ flowcharts/plots/drawings... {{{ src_tables := $(wildcard tables/table-*.tex) -src_figures := $(wildcard figures/fig-*.tex) figures/flowcharts_tikz.tex +src_figures := $(wildcard figures/fig-*.tex) figures/flowcharts_tikz.tex figures/vars.tex src_figures += $(wildcard plots/fig-*.tex) abbreviations.tex colors.tex src_recipes := $(wildcard recipes/*.tex) src_plots := $(wildcard plots/*.table) # }}} +# Actual book text and LaTeX code {{{ +src_tex := $(foreach directory, $(chapters), $(wildcard $(directory)/*.tex)) +src_tex += book.tex book_sans_serif.tex colors.tex abbreviations.tex +src_tex += $(src_recipes) supporters.csv references.bib +src_tex += sourdough.sty +# }}} + tgt_figures := $(patsubst %.tex, %.png,$(src_figures)) # Photos {{{ @@ -76,7 +76,7 @@ low_res_images := $(filter-out %.png, $(low_res_images)) src_all := $(src_tex) $(src_figures) $(src_tables) $(images) $(src_plots) # Format specific configuration files -ebook_src := $(src_all) tex4ebook.cfg book.mk4 book-ebook.css +ebook_src := $(src_all) tex4ebook.cfg book.mk4 book-ebook.css nameref.4ht website_src := $(src_all) website.cfg style.css website_dir := static_website_html