init-projects/latex/presentation/Makefile
2024-07-23 20:51:10 +02:00

32 lines
642 B
Makefile

NAME = slides
PKG = projektor.sty
PDF = $(NAME).pdf
TEXMK = latexmk -lualatex -shell-escape -interaction=nonstopmode
QPDF = qpdf --linearize --replace-input
WGET = wget -q --show-progress
RM = rm -rf
all: $(PDF)
$(PDF): %.pdf: %.tex
ifneq (,$(wildcard $(PKG)))
@$(TEXMK) $<
@$(QPDF) $@ 2>/dev/null |:
else
@$(MAKE) updatepackage
@$(MAKE) $@
endif
EXTS = aux fdb_latexmk fls log nav out snm synctex.gz toc vrb
clean:
$(RM) $(PDF) _minted-$(NAME)/ $(foreach ext,$(EXTS),$(NAME).$(ext))
full-clean: clean
$(RM) $(PKG)
updatepackage:
@$(WGET) https://git.mylloon.fr/Anri/projektor/raw/branch/main/projektor.sty \
-O $(PKG)