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
|
|
|
|
2024-02-07 16:39:27 +01:00
|
|
|
EXTS = aux bbl blg fdb_latexmk fls log synctex.gz toc
|
2024-02-07 12:14:38 +01:00
|
|
|
clean:
|
|
|
|
rm -rf $(PDF) _minted-$(NAME)/ $(foreach ext,$(EXTS),$(NAME).$(ext))
|
|
|
|
|
2024-02-07 12:16:17 +01:00
|
|
|
updateclass:
|
2024-02-09 00:08:45 +01:00
|
|
|
@$(WGET) https://moule.informatique.univ-paris-diderot.fr/kennel/rapport-stage/-/raw/main/$(CLASS) \
|
2024-02-07 16:35:23 +01:00
|
|
|
-O $(CLASS)
|