20 lines
400 B
Makefile
20 lines
400 B
Makefile
|
NAME = test
|
||
|
|
||
|
TEX = $(NAME).tex
|
||
|
SRC = $(TEX)
|
||
|
PDF = $(TEX:.tex=.pdf)
|
||
|
|
||
|
TEXMK = latexmk -lualatex -shell-escape -interaction=nonstopmode
|
||
|
QPDF = qpdf --linearize --replace-input
|
||
|
RM = rm -rf
|
||
|
|
||
|
all: $(PDF)
|
||
|
|
||
|
$(PDF): %.pdf: %.tex
|
||
|
$(TEXMK) $<
|
||
|
@$(QPDF) $@ 2>/dev/null |:
|
||
|
|
||
|
EXTS = aux fdb_latexmk fls log nav out snm synctex.gz toc
|
||
|
clean:
|
||
|
$(RM) $(PDF) _minted-$(NAME)/ $(foreach ext,$(EXTS),$(NAME).$(ext))
|