diff --git a/.gitignore b/.gitignore index 8d2fae7bbd5b482bf6147a14bce57038f0546340..47a456944491a9e2473bcaeb1800cc52b08d5f4c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,7 @@ +README.html +LAYOUT.html +FAQ.html +DESIGN.html *~ *.pyc _site diff --git a/Makefile b/Makefile index 8a4c8144896824f5fe744b391e40805164d331b3..61fcfb94a710a24721580f4b08e4a44656c7eb5b 100644 --- a/Makefile +++ b/Makefile @@ -3,12 +3,17 @@ SRC_RMD = $(wildcard ??-*.Rmd) DST_RMD = $(patsubst %.Rmd,%.md,$(SRC_RMD)) # All Markdown files (hand-written and generated). -SRC_MD = $(wildcard *.md) $(DST_RMD) +ALL_MD = $(wildcard *.md) $(DST_RMD) +EXCLUDE_MD = README.md LAYOUT.md FAQ.md DESIGN.md +SRC_MD = $(filter-out $(EXCLUDE_MD),$(ALL_MD)) DST_HTML = $(patsubst %.md,%.html,$(SRC_MD)) # All outputs. DST_ALL = $(DST_HTML) +# Pandoc filters. +FILTERS = $(wildcard tools/filters/*.py) + # Inclusions. INCLUDES = \ -Vheader="$$(cat _includes/header.html)" \ @@ -32,7 +37,7 @@ motivation.html : motivation.md _layouts/slides.html -o $@ $< # Pattern to build a generic page. -%.html : %.md _layouts/page.html +%.html : %.md _layouts/page.html $(FILTERS) pandoc -s -t html \ --template=_layouts/page \ --filter=tools/filters/blockquote2div.py \ @@ -63,7 +68,3 @@ settings : ## clean : Clean up temporary and intermediate files. clean : @rm -rf $$(find . -name '*~' -print) - -# very-clean : Remove generated HTML. -very-clean : - @rm -f $(DST_MD)