diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2018-04-18 09:41:31 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2018-04-18 09:41:31 +0200 |
commit | a69a5acdcf8c72f6f2b96f0f43cb3fa205fd02cf (patch) | |
tree | 72dd4f6779bae48cb2f602f630398150b8a36b97 /Makefile | |
parent | d7507c1fbae1362bfb4525b074061a5303a9cc71 (diff) | |
download | iot-workshop-ndc-2018-a69a5acdcf8c72f6f2b96f0f43cb3fa205fd02cf.tar.gz iot-workshop-ndc-2018-a69a5acdcf8c72f6f2b96f0f43cb3fa205fd02cf.tar.bz2 iot-workshop-ndc-2018-a69a5acdcf8c72f6f2b96f0f43cb3fa205fd02cf.tar.xz iot-workshop-ndc-2018-a69a5acdcf8c72f6f2b96f0f43cb3fa205fd02cf.zip |
wip
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 20 |
1 files changed, 14 insertions, 6 deletions
@@ -4,13 +4,15 @@ SLIDE_THEME=boxes PDFS=$(P)-text.pdf $(P)-slides.pdf HTMLS=$(P)-reveal.html -RUN_PANDOC_BEAMER=pandoc -f markdown -t beamer --highlight-style=pygments -V theme:$(SLIDES_THEME)\ +RUN_PP_BEAMER=pp -DBEAMER +RUN_PANDOC_BEAMER=pandoc -f markdown -t beamer --highlight-style=pygments -V theme:$(SLIDE_THEME) \ --pdf-engine=xelatex RUN_PANDOC_REVEALJS=pandoc -f markdown -t revealjs -s -V revealjs-url=./bower_components/reveal.js +RUN_PANDOC_TEXT=pandoc -f markdown --pdf-engine=xelatex all: $(PDFS) $(HTMLS) -slides: $(P)-slides.pdf +slides: $(P)-slides.pdf $(P)-slides.tex html: $(P)-reveal.html .PHONY: html slides @@ -28,17 +30,23 @@ spell: .$(P).md.spell $(P).md: Makefile @touch $@ -%-text.pdf: %.md - pandoc -f markdown -o $@ $< +%.beamer.md: %.md + $(RUN_PP_BEAMER) < $< > $@ -%-slides.pdf: %.md +%-text.pdf: %.beamer.md + $(RUN_PANDOC_TEXT) -o $@ $< + +%-slides.pdf: %.beamer.md + $(RUN_PANDOC_BEAMER) -o $@ $< + +%-slides.tex: %.beamer.md $(RUN_PANDOC_BEAMER) -o $@ $< %-reveal.html: %.md $(RUN_PANDOC_REVEALJS) -o $@ $< images/%.pdf: images/%.tex | Makefile - pdflatex -output-directory=images $< + xelatex -output-directory=images $< # pdfcrop $@ # mv $(patsubst %.pdf,%-crop.pdf,$@) $@ |