2023-12-11 17:59:14 +01:00
|
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
# SPDX-FileCopyrightText: 2023 swt23w23
|
2023-11-15 18:14:45 +01:00
|
|
|
PLANTUML_DIAGRAMS = $(patsubst %,figures/puml/%.pdf,design/systemContextDiagram design/catalog design/catering design/inventory design/order design/staff design/user)
|
2023-11-14 19:18:45 +01:00
|
|
|
PLANTUML_LOCAL_DIAGRAMS = $(patsubst %,figures/puml_local/%.pdf,seq_order_add seq_order_checkout)
|
|
|
|
|
|
|
|
.PHONY: default clean
|
|
|
|
|
|
|
|
default: main.pdf
|
|
|
|
|
|
|
|
main.pdf: main.tex ${PLANTUML_DIAGRAMS} ${PLANTUML_LOCAL_DIAGRAMS}
|
|
|
|
latexmk -xelatex main.tex
|
|
|
|
|
|
|
|
figures/puml/%.pdf: ../../asciidoc/models/%.puml
|
|
|
|
mkdir -p $(shell dirname $@)
|
|
|
|
plantuml -tpdf $< -o ./$(shell realpath --relative-to $(shell dirname $<) $(shell dirname $@))
|
|
|
|
|
|
|
|
figures/puml_local/%.pdf: figures/puml_local/%.puml
|
|
|
|
plantuml -tpdf $<
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f \
|
|
|
|
${PLANTUML_DIAGRAMS} \
|
|
|
|
${PLANTUML_LOCAL_DIAGRAMS} \
|
|
|
|
main.aux \
|
|
|
|
main.fdb_latexmk \
|
|
|
|
main.fls \
|
|
|
|
main.log \
|
|
|
|
main.nav \
|
|
|
|
main.out \
|
|
|
|
main.pdf \
|
|
|
|
main.snm \
|
|
|
|
main.synctex.gz \
|
|
|
|
main.toc \
|
|
|
|
main.xdv
|