Created
August 6, 2013 17:43
-
-
Save achalddave/6166728 to your computer and use it in GitHub Desktop.
Makefile for generating html files to an output folder from markdown files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SRCS=$(filter-out readme.md, $(wildcard *.md)) | |
FILES=$(patsubst %.md, output/%.html,$(SRCS)) | |
all : output $(FILES) | |
output : | |
mkdir -p output | |
output/%.html : %.md | |
pandoc --section-divs -c ../docs.css -s --smart -t html5 $< -o $@ | |
rebuild : clean output $(FILES) | |
clean : | |
rm -rf output/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment