mirror of
https://github.com/st-tu-dresden-praktikum/swt23w23
synced 2024-07-02 14:43:42 +02:00
33 lines
895 B
Makefile
33 lines
895 B
Makefile
|
PLANTUML_DIAGRAMS = $(patsubst %,figures/puml/%.pdf,design/systemContextDiagram design/catalog design/catering design/customer 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
|