NAME = rapport BIBFILE = sources CLASS = rapstage.cls PDF = $(NAME).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. # 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) $< @$(QPDF) $@ 2>/dev/null |: else @$(MAKE) updateclass @$(MAKE) $@ endif EXTS = aux bbl blg fdb_latexmk fls log synctex.gz toc clean: $(RM) _minted-$(NAME)/ $(foreach ext,$(EXTS),$(NAME).$(ext)) full-clean: clean $(RM) $(PDF) $(CLASS) updateclass: @$(WGET) https://moule.informatique.univ-paris-diderot.fr/kennel/rapport-stage/-/raw/main/$(CLASS) \ -O $(CLASS)