From edba2a8506a3dd048ec590b8cbd700ba5ad2f998 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Wed, 5 Jun 2024 21:56:30 +0200 Subject: [PATCH] add qpdf and fix clean --- modele/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modele/Makefile b/modele/Makefile index 789d46d..071fb50 100644 --- a/modele/Makefile +++ b/modele/Makefile @@ -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)