32 lines
746 B
Makefile
32 lines
746 B
Makefile
NAME = rapport
|
|
BIBFILE = sources
|
|
|
|
CLASS = rapstage.cls
|
|
|
|
TEX = $(NAME).tex
|
|
SRC = $(TEX)
|
|
PDF = $(TEX:.tex=.pdf)
|
|
|
|
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
|
|
ifneq (,$(wildcard $(CLASS)))
|
|
@$(TEXMK) $<
|
|
else
|
|
@echo "Can't proceed, $(CLASS) missing."
|
|
endif
|
|
|
|
EXTS = aux bbl blg fdb_latexmk fls log synctex.gz toc
|
|
clean:
|
|
rm -rf $(PDF) _minted-$(NAME)/ $(foreach ext,$(EXTS),$(NAME).$(ext))
|
|
|
|
updateclass:
|
|
@$(WGET) https://moule.informatique.univ-paris-diderot.fr/kennel/rapport-stage/-/raw/main/$(CLASS) \
|
|
-O $(CLASS)
|