Site Generation - Matt Whipple

This site is generated with pandoc. Each html file can be produced by the corresponding source markdown file which lends itself. The source files themselves can be collected using a wildcard/glob which can then be used to derive the output files. The pattern itself can be used to call pandoc with the desired invocation. All together in a Makefile with a phony target to handle all of the outputs this looks like:

BIB_FILE := sources.bib
OUT_DIR  := public/

SOURCES   = $(wildcard *.md)
OUTPUTS   = $(addprefix ${OUT_DIR},${})

    pandoc --citeproc --bibliography ${BIB_FILE} -s ${<} -o ${@}

site: ${OUTPUTS}
.PHONY: site