Skip to content

Instantly share code, notes, and snippets.

@hanse
Created March 5, 2014 12:45
Show Gist options
  • Save hanse/9366482 to your computer and use it in GitHub Desktop.
Save hanse/9366482 to your computer and use it in GitHub Desktop.
pandoc makefile
MD=$(shell find . -name "*.md")
PDF=$(MD:.md=.pdf)
all: $(PDF)
%.pdf: %.md
pandoc -s -N $< -o $@
clean:
rm -f $(PDF)
.PHONY: clean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment