UnityRP/compilation/Makefile

21 lines
385 B
Makefile
Raw Normal View History

2024-09-22 14:17:09 +02:00
NAME = compilation
PDF = $(NAME).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) $(foreach ext,$(EXTS),$(NAME).$(ext))
full-clean: clean
$(RM) $(NAME).pdf