UnityRP/contrats/Makefile

20 lines
493 B
Makefile
Raw Normal View History

2024-09-22 11:24:44 +02:00
TEXS = $(wildcard *.tex)
NAMES = $(patsubst %.tex,%,$(TEXS))
TEXMK = latexmk -lualatex -shell-escape -interaction=nonstopmode
QPDF = qpdf --linearize --replace-input
RM = rm -rf
all: build
build:
$(foreach i,$(TEXS),$(TEXMK) "$(i)";)
@$(foreach i,$(NAMES),$(QPDF) "$(i).pdf" 2>/dev/null |:;)
EXTS = aux fdb_latexmk fls log nav out snm synctex.gz toc vrb
clean:
$(RM) $(foreach f,$(NAMES),$(foreach ext,$(EXTS),$(f).$(ext)))
full-clean: clean
$(RM) $(foreach f,$(NAMES),$(f).pdf)