Skip to content

Instantly share code, notes, and snippets.

@ork
Created May 15, 2014 09:39
Show Gist options
  • Save ork/95cf401a9f11f3eae438 to your computer and use it in GitHub Desktop.
Save ork/95cf401a9f11f3eae438 to your computer and use it in GitHub Desktop.
Generic LaTeX Makefile using latexmk and lualatex
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
@guilhermgonzaga
Copy link

Hey, just a tip.

That option -CA for latexmk is now obsolete. People should use -C instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment