26 lines
555 B
Makefile
26 lines
555 B
Makefile
|
NAME = rapport
|
||
|
BIBFILE = sources
|
||
|
|
||
|
TEX = $(NAME).tex
|
||
|
SRC = $(TEX)
|
||
|
PDF = $(TEX:.tex=.pdf)
|
||
|
|
||
|
TEXMK = latexmk -shell-escape -lualatex
|
||
|
WGET = wget -q --show-progress
|
||
|
|
||
|
all: $(PDF)
|
||
|
|
||
|
$(PDF): %.pdf: %.tex
|
||
|
@$(TEXMK) $< >/dev/null
|
||
|
bibtex $(BIBFILE)
|
||
|
@$(TEXMK) $< >/dev/null
|
||
|
$(TEXMK) $<
|
||
|
|
||
|
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))
|
||
|
|
||
|
updatepackage:
|
||
|
@$(WGET) https://git.mylloon.fr/Paris7/rapport-stage-template/raw/branch/main/rapstage.cls \
|
||
|
-O rapstage.cls
|