init-projects/latex/exam/Makefile

21 lines
390 B
Makefile
Raw Normal View History

2024-05-10 00:09:12 +02:00
NAME = test
2024-07-23 20:51:10 +02:00
PDF = $(NAME).pdf
2024-05-10 00:09:12 +02:00
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) _minted-$(NAME)/ $(foreach ext,$(EXTS),$(NAME).$(ext))
full-clean: clean
$(RM) $(PDF)