-
-
Save glasnt/316852f131d8736d3c13 to your computer and use it in GitHub Desktop.
Makefile for all the awesome "markdown -> pandoc -> pdf"-ness
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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