Skip to content
Snippets Groups Projects
Commit 9dba3d29 authored by Raniere Silva's avatar Raniere Silva
Browse files

Merge pull request #226 from r-gaia-cs/core-add-pandoc-variable

Add variable to represent Pandoc
parents 41a416c4 26f32903
Branches
Tags
No related merge requests found
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)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment