2024-03-05 00:34:31 +01:00
|
|
|
export MERMAID_FILTER_FORMAT:=pdf
|
2024-02-13 15:22:59 +01:00
|
|
|
|
|
|
|
all: local
|
|
|
|
|
|
|
|
help:
|
|
|
|
@echo "Please choose an option!"
|
|
|
|
@echo "- Create pdf: make pdf"
|
|
|
|
|
|
|
|
dir:
|
|
|
|
mkdir -p out
|
|
|
|
|
2024-03-05 00:34:31 +01:00
|
|
|
tmp:
|
|
|
|
cat $$(find chapters -type f -name "*.md" | sort) | grep -vw '<!-- prettier-ignore -->' > /tmp/bachelor-build
|
|
|
|
|
|
|
|
|
2024-02-13 15:22:59 +01:00
|
|
|
bachelor: @cat $(MARKDOWN_FILES)
|
|
|
|
|
2024-03-05 00:34:31 +01:00
|
|
|
local: dir tmp
|
2024-02-13 15:22:59 +01:00
|
|
|
@echo "Building paper"
|
2024-03-05 00:34:31 +01:00
|
|
|
pandoc -f markdown+implicit_figures --strip-comments --listings -V colorlinks=true -V linkcolor=black -V urlcolor=black -f 'markdown+autolink_bare_uris' --pdf-engine=lualatex --pdf-engine-opt=-shell-escape --filter mermaid-filter --filter py-pandoc-include-code --lua-filter columns.lua --citeproc -s /tmp/bachelor-build -o ./out/bachelor.pdf -V lang=de-DE -V fontsize=12pt --reference-links --bibliography Bachelor.bib --csl=harvard-right.csl -M lang:de --number-sections -Vindent=false
|
2024-02-13 15:22:59 +01:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf out
|