add qpdf and fix clean
This commit is contained in:
parent
89813109a8
commit
edba2a8506
1 changed files with 5 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue