Skip to content

Instantly share code, notes, and snippets.

@glasnt
Forked from christian-marie/Makefile
Last active August 29, 2015 14:11
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 glasnt/316852f131d8736d3c13 to your computer and use it in GitHub Desktop.
Save glasnt/316852f131d8736d3c13 to your computer and use it in GitHub Desktop.
Makefile for all the awesome "markdown -> pandoc -> pdf"-ness
MARKDOWNS=$(wildcard *.md)
PDFS=$(MARKDOWNS:md=pdf)
all: $(PDFS)
clean:
rm -f $(PDFS)
%.pdf: %.md
pandoc -V geometry:margin=1in -V papersize:"a4paper" --toc $< -o $@
#`while :; do inotifywait *.md && make; done`
#then if you open it with evince, whenever you write out it should update
# -- pingu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment