Skip to content

Instantly share code, notes, and snippets.

@themichaelyang
Last active April 30, 2018 18:04
Show Gist options
  • Save themichaelyang/301418971c97326a4145151739ef92a0 to your computer and use it in GitHub Desktop.
Save themichaelyang/301418971c97326a4145151739ef92a0 to your computer and use it in GitHub Desktop.
Makefile for easy LaTex documents from Markdown
.PHONY: clean
SRC = $(wildcard *.md)
all : $(addprefix pdf/, ${SRC:.md=.pdf})
./pdf/%.pdf : %.md
pandoc $*.md --pdf-engine=pdflatex -o pdf/$*.pdf
clean :
rm -f pdf/*.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment