Skip to content

Instantly share code, notes, and snippets.

@thoughtpolice
Created October 23, 2011 23:58
Show Gist options
  • Save thoughtpolice/1308098 to your computer and use it in GitHub Desktop.
Save thoughtpolice/1308098 to your computer and use it in GitHub Desktop.
Q=@
E=@echo
PANDOC=$(Q)pandoc
FILES=$(shell ls *.md)
FILES_HTML=$(patsubst %.md,outdir/%.html,$(FILES))
all: outdir $(FILES_HTML)
outdir:
$(Q)mkdir -p outdir
%.html: ../%.md
$(E) Building $@
$(PANDOC) -S -f markdown -t html -o $@ $<
clean:
rm -rf *~ outdir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment