diff --git a/Makefile b/Makefile index 4d3885074e0590f0fd0aca582857f8fb05235820..6d2b59b0c04d648de1a17ed35a8d2dda527c5e07 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,5 @@ +PANDOC ?= pandoc + # R Markdown files. SRC_RMD = $(wildcard ??-*.Rmd) DST_RMD = $(patsubst %.Rmd,%.md,$(SRC_RMD)) @@ -43,13 +45,13 @@ preview : $(DST_ALL) # Pattern for slides (different parameters and template). motivation.html : motivation.md _layouts/slides.revealjs Makefile - pandoc -s -t revealjs --slide-level 2 \ + ${PANDOC} -s -t revealjs --slide-level 2 \ --template=_layouts/slides \ -o $@ $< # Pattern to build a generic page. %.html : %.md _layouts/page.html $(FILTERS) - pandoc -s -t html \ + ${PANDOC} -s -t html \ --template=_layouts/page \ --filter=tools/filters/blockquote2div.py \ --filter=tools/filters/id4glossary.py \ @@ -66,6 +68,7 @@ commands : Makefile ## settings : Show variables and settings. settings : + @echo 'PANDOC:' $(PANDOC) @echo 'SRC_RMD:' $(SRC_RMD) @echo 'DST_RMD:' $(DST_RMD) @echo 'SRC_MD:' $(SRC_MD)