summaryrefslogtreecommitdiff
path: root/2018/08-26-linuxdev-br-debian-ci/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '2018/08-26-linuxdev-br-debian-ci/Makefile')
-rw-r--r--2018/08-26-linuxdev-br-debian-ci/Makefile22
1 files changed, 19 insertions, 3 deletions
diff --git a/2018/08-26-linuxdev-br-debian-ci/Makefile b/2018/08-26-linuxdev-br-debian-ci/Makefile
index 3040995..5814b35 100644
--- a/2018/08-26-linuxdev-br-debian-ci/Makefile
+++ b/2018/08-26-linuxdev-br-debian-ci/Makefile
@@ -1,6 +1,22 @@
presentation = debian-ci
-all: $(presentation).pdf
+source = $(presentation).md
+slideshow = $(presentation)-slideshow.pdf
+handout = $(presentation).pdf
-$(presentation).pdf: $(presentation).md
- pandoc -t beamer -o $@ $<
+PANDOC = pandoc --to beamer
+SLIDESHOW = $(PANDOC) --incremental
+HANDOUT = $(PANDOC)
+
+all: $(slideshow) $(handout)
+
+$(slideshow): $(source)
+ $(SLIDESHOW) --output $@ $<
+
+$(handout): $(source)
+ $(HANDOUT) --output $@ $<
+
+$(slideshow) $(handout): $(wildcard *.png) $(wildcard *.svg)
+
+clean:
+ $(RM) $(slideshow) $(handout)