Skip to content

Instantly share code, notes, and snippets.

@brockers
Last active August 30, 2016 20:11
Show Gist options
  • Save brockers/574ba27c997b68ec0cfc6c69caf99b66 to your computer and use it in GitHub Desktop.
Save brockers/574ba27c997b68ec0cfc6c69caf99b66 to your computer and use it in GitHub Desktop.
MD to HTML Makefile
# 'Makefile'
MARKDOWN = pandoc --from markdown_github --to html --standalone
all: $(patsubst %.md,%.html,$(wildcard *.md)) Makefile
clean:
rm -f $(patsubst %.md,%.html,$(wildcard *.md))
rm -f *.bak *~
%.html: %.md
$(MARKDOWN) $< --output $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment