17 lines
335 B
Makefile
17 lines
335 B
Makefile
NAME = document
|
|
|
|
TEX = $(NAME).tex
|
|
SRC = $(TEX)
|
|
PDF = $(TEX:.tex=.pdf)
|
|
|
|
TEXMK = latexmk -lualatex -shell-escape -interaction=nonstopmode
|
|
RM = rm -rf
|
|
|
|
all: $(PDF)
|
|
|
|
$(PDF): %.pdf: %.tex
|
|
$(TEXMK) $<
|
|
|
|
EXTS = aux fdb_latexmk fls log nav out snm synctex.gz toc
|
|
clean:
|
|
$(RM) $(PDF) _minted-$(NAME)/ $(foreach ext,$(EXTS),$(NAME).$(ext))
|