Last active
April 30, 2018 18:04
-
-
Save themichaelyang/301418971c97326a4145151739ef92a0 to your computer and use it in GitHub Desktop.
Makefile for easy LaTex documents from Markdown
This file contains 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
.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