2024-02-01 15:16:54 +01:00
|
|
|
NAME = slides
|
2023-10-03 12:08:51 +02:00
|
|
|
|
2024-02-28 14:57:26 +01:00
|
|
|
PKG = projektor.sty
|
2024-07-23 20:51:10 +02:00
|
|
|
PDF = $(NAME).pdf
|
2023-10-03 12:08:51 +02:00
|
|
|
|
2024-03-10 12:01:20 +01:00
|
|
|
TEXMK = latexmk -lualatex -shell-escape -interaction=nonstopmode
|
2024-04-25 12:09:03 +02:00
|
|
|
QPDF = qpdf --linearize --replace-input
|
2023-10-03 12:08:51 +02:00
|
|
|
WGET = wget -q --show-progress
|
2024-04-25 12:08:55 +02:00
|
|
|
RM = rm -rf
|
2023-10-03 12:08:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
all: $(PDF)
|
|
|
|
|
|
|
|
$(PDF): %.pdf: %.tex
|
2024-02-28 14:57:26 +01:00
|
|
|
ifneq (,$(wildcard $(PKG)))
|
|
|
|
@$(TEXMK) $<
|
2024-04-25 12:09:03 +02:00
|
|
|
@$(QPDF) $@ 2>/dev/null |:
|
2024-02-28 14:57:26 +01:00
|
|
|
else
|
2024-04-20 15:34:23 +02:00
|
|
|
@$(MAKE) updatepackage
|
|
|
|
@$(MAKE) $@
|
2024-02-28 14:57:26 +01:00
|
|
|
endif
|
2023-10-03 12:08:51 +02:00
|
|
|
|
|
|
|
EXTS = aux fdb_latexmk fls log nav out snm synctex.gz toc vrb
|
|
|
|
clean:
|
2024-10-11 08:44:16 +02:00
|
|
|
$(RM) _minted-$(NAME)/ $(foreach ext,$(EXTS),$(NAME).$(ext))
|
2023-10-03 12:08:51 +02:00
|
|
|
|
2024-04-29 13:49:24 +02:00
|
|
|
full-clean: clean
|
2024-10-11 08:44:16 +02:00
|
|
|
$(RM) $(PDF) $(PKG)
|
2024-04-20 15:34:23 +02:00
|
|
|
|
2023-10-03 12:08:51 +02:00
|
|
|
updatepackage:
|
|
|
|
@$(WGET) https://git.mylloon.fr/Anri/projektor/raw/branch/main/projektor.sty \
|
2024-02-28 14:57:26 +01:00
|
|
|
-O $(PKG)
|