rapport-stage/modele/Makefile

43 lines
1 KiB
Makefile
Raw Normal View History

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)
TEXMK = latexmk -lualatex -shell-escape -interaction=nonstopmode -bibtex
2024-06-05 21:56:30 +02:00
QPDF = qpdf --linearize --replace-input
2024-02-07 12:14:38 +01:00
WGET = wget -q --show-progress
2024-06-05 21:56:30 +02:00
RM = rm -rf
2024-02-07 12:14:38 +01:00
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
# S'il vous manque les polices windows, sur Arch avec paru, vous pouvez faire :
# IPFS_GATEWAY=cloudflare-ipfs.com paru -S ttf-ms-win10-cdn
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) $<
2024-06-05 21:56:30 +02:00
@$(QPDF) $@ 2>/dev/null |:
2024-02-07 16:35:23 +01:00
else
@$(MAKE) updateclass
@$(MAKE) $@
2024-02-07 16:35:23 +01:00
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:
2024-06-05 21:58:45 +02:00
$(RM) _minted-$(NAME)/ $(foreach ext,$(EXTS),$(NAME).$(ext))
2024-02-07 12:14:38 +01:00
full-clean: clean
2024-06-05 21:58:45 +02:00
$(RM) $(PDF) $(CLASS)
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-06-05 21:56:30 +02:00
-O $(CLASS)