aboutsummaryrefslogtreecommitdiff
path: root/Info/9/3/Planet/Makefile
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2026-04-13 16:56:57 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2026-04-13 16:56:57 +0200
commitda012d103e520dc003a8d56c32414641beaa8e10 (patch)
treef9e1e9dd2dfacbc481bf4491c4952a8440d8f6a4 /Info/9/3/Planet/Makefile
parent94a4c6a4b6ad73c8cb10f418c561b2ad1b0975f9 (diff)
downloadunterricht-da012d103e520dc003a8d56c32414641beaa8e10.tar.gz
unterricht-da012d103e520dc003a8d56c32414641beaa8e10.zip
initial planet commit
Diffstat (limited to 'Info/9/3/Planet/Makefile')
-rw-r--r--Info/9/3/Planet/Makefile45
1 files changed, 45 insertions, 0 deletions
diff --git a/Info/9/3/Planet/Makefile b/Info/9/3/Planet/Makefile
new file mode 100644
index 00000000..f825714e
--- /dev/null
+++ b/Info/9/3/Planet/Makefile
@@ -0,0 +1,45 @@
+PRINTOUT=modellierung/landung/modellierung.pdf \
+ modellierung/zwischenlager/methoden-testen.pdf \
+ modellierung/zwischenlager/methoden-schreiben.pdf \
+ algorithmik/sequenzen/sequenzen.pdf \
+ algorithmik/while/bedingte-wiederholung.pdf
+
+PLOTSRCS := $(shell find -name "*.plantuml")
+TIKSSRC := $(shell find -name "*.tikz")
+PLOTS := $(PLOTSRCS:.plantuml=.svg) $(TIKSSRC:.tikz=.svg)
+
+SRC := $(shell find -name "*.md")
+
+PANDOC_FILTER := --filter pandoc-plot
+PANDOC_FILTER += --lua-filter pandoc/color-text.lua
+PANDOC_FILTER += --lua-filter pandoc/wrap-merke.lua
+PANDOC_FILTER += --lua-filter pandoc/center-img.lua
+
+COMMON_PANDOC_OPTIONS := --embed-resources --standalone \
+ $(PANDOC_FILTER) \
+ --metadata-file=pandoc/default-metadata.yml
+
+PANDOC=pandoc $(COMMON_PANDOC_OPTIONS)
+
+all: $(PLOTS) $(SRC:.md=.html) $(PRINTOUT)
+
+%.html: %.md planet-mebis-page-template.html Makefile
+ $(PANDOC) --template planet-mebis-page-template.html --resource-path="$(@D):." $< > $@
+
+%.pdf: %.html Makefile
+ chromium --headless --disable-gpu --print-to-pdf="$@" --generate-pdf-document-outline --no-pdf-header-footer $<
+
+%.svg: %.plantuml Makefile
+ plantuml --svg $< > $@
+
+%.svg: %.tikz Makefile
+ tikztosvg -l shapes.geometric -l arrows.meta -l positioning -l calc -p struktex -o $@ $<
+ inkscape --actions="page-fit-to-selection" -o $@ $@
+
+algorithmik/while/bedingte-wiederholung.html: algorithmik/while/tuwas.svg
+
+algorithmik/while/tuwas.pdf: algorithmik/while/tuwas.tex
+ latexmk -pdf -outdir=$(@D) $<
+
+algorithmik/while/tuwas.svg: algorithmik/while/tuwas.pdf
+ pdf2svg $< $@