aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--common.mk6
-rwxr-xr-xscripts/lesson-make2
3 files changed, 8 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index d8ce0e8b..94d7f515 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,6 +2,7 @@
schedule.pdf
map.pdf
slides.pdf
+slides.pptx
handout.pdf
sequence.pdf
*_printout.pdf
diff --git a/common.mk b/common.mk
index 3654c74f..1e281e6d 100644
--- a/common.mk
+++ b/common.mk
@@ -18,6 +18,8 @@ SLIDES_OPTIONS := --slide-level 2 -t beamer --pdf-engine-opt=--shell-escape
RUBBER_OPTS := --into .build -m lualatex:pdf --shell-escape -I "$(LATEX_BASE)"
+PDF2PPTX := pdf2pptx
+
VERBOSE ?= @
ifeq ($(VERBOSE), @)
RUBBER_OPTS += --quiet
@@ -35,6 +37,10 @@ slides%.pdf: slides%.md $(wildcard slides.md) $(wildcard img/*) $(MAKEFILE_LIST)
@echo "building $@"
$(VERBOSE)$(PANDOC) $(SLIDES_OPTIONS) $< -o $@
+slides.pptx: slides.pdf $(MAKEFILE_LIST)
+ @echo "building $@"
+ $(VERBOSE)$(PDF2PPTX) $<
+
%.pdf: %.md $(MAKEFILE_LIST)
@echo "building $@"
$(VERBOSE)$(PANDOC) -f markdown $< -o $@
diff --git a/scripts/lesson-make b/scripts/lesson-make
index d45f3ac8..7db37eee 100755
--- a/scripts/lesson-make
+++ b/scripts/lesson-make
@@ -7,6 +7,6 @@ done
FIND="find . -maxdepth 1 '(' -name '*.md' -o -name '*.tex' ')' -a -not -name 'Aufgabe[0-9].tex' -a -not -name '_*'"
if [[ -f "${MAKEFILE}" ]]; then
- exec make -f "${MAKEFILE}" "$@" $(eval "${FIND}" | sed 's/\.tex$/.pdf/g' | sed 's/\.md$/.pdf/g')
+ exec make -f "${MAKEFILE}" "$@" $(eval "${FIND}" | sed -e 's/\.tex$/.pdf/g' -e 's/\.md$/.pdf/g' -e 's/slides.pdf/slides.pdf slides.pptx/')
fi