aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2026-04-23 21:25:29 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2026-04-23 21:25:29 +0200
commite0c6d6609ef6de90e252f6409195f5be7fb26346 (patch)
treec26bcd85c0aedcd8ee79f7302b0b89b2fd3924d4
parent636adfe249c3848c092f01ead4ff7955d3609722 (diff)
downloadunterricht-e0c6d6609ef6de90e252f6409195f5be7fb26346.tar.gz
unterricht-e0c6d6609ef6de90e252f6409195f5be7fb26346.zip
add make rules for the slides
-rw-r--r--Info/9/3/Planet/Makefile8
-rw-r--r--Info/9/3/Planet/Makefile.slides2
2 files changed, 9 insertions, 1 deletions
diff --git a/Info/9/3/Planet/Makefile b/Info/9/3/Planet/Makefile
index b28b21bb..a4a42706 100644
--- a/Info/9/3/Planet/Makefile
+++ b/Info/9/3/Planet/Makefile
@@ -23,7 +23,7 @@ COMMON_PANDOC_OPTIONS := --embed-resources --standalone \
PANDOC=pandoc $(COMMON_PANDOC_OPTIONS)
-all: $(PLOTS) $(SRC:.md=.html) $(PRINTOUT)
+all: $(PLOTS) $(SRC:.md=.html) $(PRINTOUT) slides.pdf slides.pptx
%.html: %.md planet-mebis-page-template.html Makefile
$(PANDOC) --template planet-mebis-page-template.html --resource-path="$(@D):." $< > $@
@@ -45,3 +45,9 @@ algorithmik/while/tuwas.pdf: algorithmik/while/tuwas.tex
algorithmik/while/tuwas.svg: algorithmik/while/tuwas.pdf
pdf2svg $< $@
+
+slides.pdf: slides.md
+ $(MAKE) -f Makefile.slides slides.pdf
+
+slides.pptx: slides.pdf
+ $(MAKE) -f Makefile.slides slides.pptx
diff --git a/Info/9/3/Planet/Makefile.slides b/Info/9/3/Planet/Makefile.slides
new file mode 100644
index 00000000..cfd776e1
--- /dev/null
+++ b/Info/9/3/Planet/Makefile.slides
@@ -0,0 +1,2 @@
+COMMON_MK = $(shell bash -c 'upfind() { [[ -f "$$1" ]] && printf "$$1" || ([ "$$(realpath $$(dirname "$$1"))" == "/" ] || upfind "../$$1") }; upfind common.mk')
+include $(COMMON_MK)