mirror of
https://github.com/st-tu-dresden-praktikum/swt23w23
synced 2024-06-28 08:53:43 +02:00
Simon Bruder
bac025fd0a
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.
35 lines
964 B
Makefile
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
|