Commit 0f3be25b authored by Greg Wilson's avatar Greg Wilson
Browse files

Excluding unwanted files from build

parent e0771954
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
README.html
LAYOUT.html
FAQ.html
DESIGN.html
*~
*.pyc
_site
+7 −2
Original line number Diff line number Diff line
@@ -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 \