guardrail

This commit is contained in:
Mylloon 2024-02-07 16:35:23 +01:00
parent 040341ef80
commit 0b4e059cab
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -1,25 +1,32 @@
NAME = rapport
BIBFILE = sources
CLASS = rapstage.cls
TEX = $(NAME).tex
SRC = $(TEX)
PDF = $(TEX:.tex=.pdf)
TEXMK = latexmk -shell-escape -lualatex
TEXMK = latexmk -shell-escape -lualatex -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
all: $(PDF)
$(PDF): %.pdf: %.tex
@$(TEXMK) $< >/dev/null
bibtex $(BIBFILE)
@$(TEXMK) $< >/dev/null
$(TEXMK) $<
ifneq (,$(wildcard $(CLASS)))
@$(TEXMK) $<
else
@echo "Can't proceed, $(CLASS) missing."
endif
EXTS = aux fdb_latexmk fls log nav out snm synctex.gz toc bbl blg
clean:
rm -rf $(PDF) _minted-$(NAME)/ $(foreach ext,$(EXTS),$(NAME).$(ext))
updateclass:
@$(WGET) https://git.mylloon.fr/Paris7/rapport-stage/raw/branch/main/rapstage.cls \
-O rapstage.cls
@$(WGET) https://git.mylloon.fr/Paris7/rapport-stage/raw/branch/main/$(CLASS) \
-O $(CLASS)