Skip to content

Instantly share code, notes, and snippets.

@glasnt glasnt/Makefile forked from christian-marie/Makefile
Last active Aug 29, 2015

Embed
What would you like to do?
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
You can’t perform that action at this time.