Skip to content

Instantly share code, notes, and snippets.

@rightson rightson/Makefile

Last active Jul 11, 2019
Embed
What would you like to do?
My Makefile to build PDF from LaTex
SOURCE := paper.tex
mk:
latexmk -cd -f -pdf -interaction=nonstopmode -synctex=1 $(SOURCE)
pdf:
pdflatex $(SOURCE)
clean:
$(call clean)
cleanall:
$(call cleanall)
.PHONY: mk pdf clean cleanall
define clean
ls *.* | grep -v -E 'tex$$|md$$|cls$$|pdf$$' | xargs rm -f
endef
define cleanall
ls *.* | grep -v -E 'tex$$|md$$|cls$$' | xargs rm -f
endef
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.