From 2b10bd5070a2bbbf9873348916ede184f69f9eeb Mon Sep 17 00:00:00 2001 From: Krystine Sherwin <93062060+KrystalDelusion@users.noreply.github.com> Date: Wed, 1 Nov 2023 10:47:55 +1300 Subject: [PATCH] docs: update images makefile Correct path to 011 source. Also path for resources target. Set timezone to 'Z' for faketime. Not sure how to avoid needing to `make resources` before `make all` (or running `make all` twice) in order to properly generate the presentation images. --- docs/source/_images/Makefile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/source/_images/Makefile b/docs/source/_images/Makefile index d0e41561a..f0a7795b6 100644 --- a/docs/source/_images/Makefile +++ b/docs/source/_images/Makefile @@ -5,13 +5,13 @@ RES_DIRS:= $(addprefix ../../resources/,$(RES_LIST)) .PHONY: resources resources: $(RES_DIRS) FORCE: -../resources/%: FORCE +../../resources/%: FORCE @$(MAKE) -C $@ @mkdir -p res/$* @cp --update -t res/$* $@*.dot TEX_SOURCE:= $(wildcard *.tex) -DOT_LOC:= ../source/APPNOTE_011_Design_Investigation +DOT_LOC:= ../APPNOTE_011_Design_Investigation DOT_SOURCE:= $(wildcard $(DOT_LOC)/*.dot) RES_DOTS:= $(wildcard res/*/*.dot) @@ -36,13 +36,13 @@ tex: $(TEX_PDF) svg: $(SVG_OUTPUT) 011/%.pdf: $(DOT_LOC)/%.dot - faketime -f '2022-01-01 00:00:00 x0,001' dot -Tpdf -o $@ $< + TZ='Z' faketime -f '2022-01-01 00:00:00 x0,001' dot -Tpdf -o $@ $< res/%.pdf: res/%.dot - faketime -f '2022-01-01 00:00:00 x0,001' dot -Tpdf -o $@ $< + TZ='Z' faketime -f '2022-01-01 00:00:00 x0,001' dot -Tpdf -o $@ $< 011/%.pdf: 011/%.tex - cd 011 && faketime -f '2022-01-01 00:00:00 x0,001' pdflatex $(