32 lines
737 B
Makefile
32 lines
737 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 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/$(CLASS) \
|
|
-O $(CLASS)
|