add qpdf and fix clean

This commit is contained in:
Mylloon 2024-06-05 21:56:30 +02:00
parent 89813109a8
commit edba2a8506
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -8,7 +8,9 @@ SRC = $(TEX)
PDF = $(TEX:.tex=.pdf)
TEXMK = latexmk -lualatex -shell-escape -interaction=nonstopmode -bibtex
QPDF = qpdf --linearize --replace-input
WGET = wget -q --show-progress
RM = rm -rf
# Si vous n'arrivez pas à compiler le projet, vous devez probablement
# installer Pygmentize, une dépendance de minted.
@ -22,6 +24,7 @@ all: $(PDF)
$(PDF): %.pdf: %.tex
ifneq (,$(wildcard $(CLASS)))
@$(TEXMK) $<
@$(QPDF) $@ 2>/dev/null |:
else
@$(MAKE) updateclass
@$(MAKE) $@
@ -29,11 +32,11 @@ endif
EXTS = aux bbl blg fdb_latexmk fls log synctex.gz toc
clean:
rm -rf $(PDF) _minted-$(NAME)/ $(foreach ext,$(EXTS),$(NAME).$(ext))
$(RM) $(PDF) _minted-$(NAME)/ $(foreach ext,$(EXTS),$(NAME).$(ext))
full-clean: clean
$(RM) $(CLASS)
updateclass:
@$(WGET) https://moule.informatique.univ-paris-diderot.fr/kennel/rapport-stage/-/raw/main/$(CLASS) \
-O $(CLASS)
-O $(CLASS)