swt23w23/src/main/tex/interim-presentation/Makefile
Simon Bruder bac025fd0a
Make project REUSE compliant
This finally makes the licensing under AGPL-3.0-or-later explicit after
I got the okay from the kickstart source owners.

This also checks the REUSE compliance in a pre commit hook, and
therefore also in CI.
2023-12-11 17:59:14 +01:00

35 lines
964 B
Makefile

# SPDX-License-Identifier: AGPL-3.0-or-later
# SPDX-FileCopyrightText: 2023 swt23w23
PLANTUML_DIAGRAMS = $(patsubst %,figures/puml/%.pdf,design/systemContextDiagram design/catalog design/catering design/inventory design/order design/staff design/user)
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