Skip to content

Instantly share code, notes, and snippets.

@HSchmale16
Created July 3, 2015 16:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HSchmale16/fa729604ea1eb2ed472f to your computer and use it in GitHub Desktop.
Save HSchmale16/fa729604ea1eb2ed472f to your computer and use it in GitHub Desktop.
Pandoc Makefile
# Markdown Converter Makefile Using Pandoc
# Prepares PDFS from markdown source
SRC := $(wildcard *.md)
PDFS := $(SRC:.md=.md.pdf)
all: $(PDFS)
clean:
rm $(PDFS)
%.md.pdf: %.md
pandoc -s $< -o $@
.PHONY: clean all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment