Created
March 27, 2017 12:32
-
-
Save DiKorsch/fa3a871cab62a2c38c4a31900d7b6a30 to your computer and use it in GitHub Desktop.
Simple generic latexmk Makefile
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
TEX=latexmk | |
OUT_FOLDER=.out | |
OPTS=-output-directory=${OUT_FOLDER} -pdf | |
PDF_VIEWER=okular | |
PDFS=YOUR_PDF.pdf | |
main: ${PDFS} | |
%.pdf : %.tex | |
${TEX} ${OPTS} $< | |
cp ${OUT_FOLDER}/$@ $@ | |
show: main | |
${PDF_VIEWER} ${PDFS} | |
clean: | |
${TEX} ${OPTS} -c | |
clean-all: | |
${TEX} ${OPTS} -C | |
rm -f ${PDFS} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment