2024-02-07 12:14:38 +01:00
|
|
|
NAME = rapport
|
|
|
|
BIBFILE = sources
|
|
|
|
|
2024-02-07 16:35:23 +01:00
|
|
|
CLASS = rapstage.cls
|
|
|
|
|
2024-02-07 12:14:38 +01:00
|
|
|
TEX = $(NAME).tex
|
|
|
|
SRC = $(TEX)
|
|
|
|
PDF = $(TEX:.tex=.pdf)
|
|
|
|
|
2024-02-07 16:35:23 +01:00
|
|
|
TEXMK = latexmk -shell-escape -lualatex -bibtex
|
2024-02-07 12:14:38 +01:00
|
|
|
WGET = wget -q --show-progress
|
|
|
|
|
2024-02-07 16:35:23 +01:00
|
|
|
# Si vous n'arrivez pas à compiler le projet, vous devez probablement
|
|
|
|
# installer Pygmentize, une dépendance de minted.
|
|
|
|
# Pour cela : pip install Pygments
|
|
|
|
|
2024-02-07 12:14:38 +01:00
|
|
|
all: $(PDF)
|
|
|
|
|
|
|
|
$(PDF): %.pdf: %.tex
|
2024-02-07 16:35:23 +01:00
|
|
|
ifneq (,$(wildcard $(CLASS)))
|
|
|
|
@$(TEXMK) $<
|
|
|
|
else
|
|
|
|
@echo "Can't proceed, $(CLASS) missing."
|
|
|
|
endif
|
2024-02-07 12:14:38 +01:00
|
|
|
|
|
|
|
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))
|
|
|
|
|
2024-02-07 12:16:17 +01:00
|
|
|
updateclass:
|
2024-02-07 16:35:23 +01:00
|
|
|
@$(WGET) https://git.mylloon.fr/Paris7/rapport-stage/raw/branch/main/$(CLASS) \
|
|
|
|
-O $(CLASS)
|