guardrail
This commit is contained in:
parent
040341ef80
commit
0b4e059cab
1 changed files with 14 additions and 7 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue