Created
May 15, 2014 09:39
-
-
Save ork/95cf401a9f11f3eae438 to your computer and use it in GitHub Desktop.
Generic LaTeX Makefile using latexmk and lualatex
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
MAINDOC = $(shell basename $$(pwd)) | |
LTXARGS = -pdf -lualatex -use-make | |
.PHONY: $(MAINDOC).pdf all clean | |
all: $(MAINDOC).pdf | |
$(MAINDOC).pdf: $(MAINDOC).tex | |
latexmk $(LTXARGS) $(MAINDOC).tex | |
clean: | |
latexmk -CA |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey, just a tip.
That option
-CA
for latexmk is now obsolete. People should use-C
instead.