Modify Makefile to build incrementally

This commit is contained in:
Andreas Tsouchlos 2025-10-25 23:03:47 +02:00
parent c9e1bcc5ea
commit 884d6a65ae

View File

@ -1,11 +1,19 @@
all:
mkdir -p build/build
.PHONY: all
all: build/prepared build/presentation_template.pdf build/presentation_2025-11-07.pdf
build/presentation_template.pdf:
TEXINPUTS=./lib/cel-slides-template-2025:$$TEXINPUTS latexmk src/template/presentation.tex
mv build/presentation.pdf build/presentation_template.pdf
mv build/presentation.pdf $@
build/presentation_2025-11-07.pdf:
TEXINPUTS=./lib/cel-slides-template-2025:$$TEXINPUTS latexmk src/2025-11-07/presentation.tex
mv build/presentation.pdf build/presentation_2025-11-07.pdf
mv build/presentation.pdf $@
build/prepared:
mkdir -p build build
touch build/prepared
.PHONY: clean
clean:
rm -rf build