use of interaction=nonstopmode and silently download the class when mising + notice for fonts
This commit is contained in:
parent
7e04f4a17c
commit
4d89ded253
1 changed files with 9 additions and 2 deletions
|
@ -7,26 +7,33 @@ TEX = $(NAME).tex
|
|||
SRC = $(TEX)
|
||||
PDF = $(TEX:.tex=.pdf)
|
||||
|
||||
TEXMK = latexmk -shell-escape -lualatex -bibtex
|
||||
TEXMK = latexmk -lualatex -shell-escape -interaction=nonstopmode -bibtex
|
||||
WGET = wget -q --show-progress
|
||||
|
||||
# Si vous n'arrivez pas à compiler le projet, vous devez probablement
|
||||
# installer Pygmentize, une dépendance de minted.
|
||||
# Pour cela : pip install Pygments
|
||||
|
||||
# S'il vous manque les polices windows, sur Arch avec paru, vous pouvez faire :
|
||||
# IPFS_GATEWAY=cloudflare-ipfs.com paru -S ttf-ms-win10-cdn
|
||||
|
||||
all: $(PDF)
|
||||
|
||||
$(PDF): %.pdf: %.tex
|
||||
ifneq (,$(wildcard $(CLASS)))
|
||||
@$(TEXMK) $<
|
||||
else
|
||||
@echo "Can't proceed, $(CLASS) missing."
|
||||
@$(MAKE) updateclass
|
||||
@$(MAKE) $@
|
||||
endif
|
||||
|
||||
EXTS = aux bbl blg fdb_latexmk fls log synctex.gz toc
|
||||
clean:
|
||||
rm -rf $(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)
|
||||
|
|
Loading…
Reference in a new issue