Skip to content

Instantly share code, notes, and snippets.

@christian-marie
Created December 16, 2014 23:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save christian-marie/84eb9608215f60b50843 to your computer and use it in GitHub Desktop.
Save christian-marie/84eb9608215f60b50843 to your computer and use it in GitHub Desktop.
Makefile for pandoc a4 pdfs
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 $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment