Skip to content

Instantly share code, notes, and snippets.

@rinx
Last active January 1, 2016 23:48
Show Gist options
  • Save rinx/8218550 to your computer and use it in GitHub Desktop.
Save rinx/8218550 to your computer and use it in GitHub Desktop.
Makefile template for lualatex document
#
# Makefile template for lualatex document
#
# Please set target name
target=name
OS=${shell uname}
$(target).pdf: lualatex.fmt $(target).tex
lualatex $(target).tex
lualatex.fmt:
lualatex -ini lualatex.ini
open: $(target).pdf
ifeq ($(OS), Darwin)
open $(target).pdf
endif
ifeq ($(OS), Linux)
acroread $(target).pdf
endif
clean:
rm -f *.log *.aux *.fmt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment