init-projects/latex/presentation/Makefile
2024-04-20 15:33:56 +02:00

28 lines
579 B
Makefile

NAME = slides
TEX = $(NAME).tex
SRC = $(TEX)
PDF = $(TEX:.tex=.pdf)
PKG = projektor.sty
TEXMK = latexmk -lualatex -shell-escape -interaction=nonstopmode
WGET = wget -q --show-progress
RM = rf -rf
all: $(PDF)
$(PDF): %.pdf: %.tex
ifneq (,$(wildcard $(PKG)))
@$(TEXMK) $<
else
@echo "Can't proceed, $(PKG) missing."
endif
EXTS = aux fdb_latexmk fls log nav out snm synctex.gz toc vrb
clean:
$(RM) $(PDF) _minted-$(NAME)/ $(foreach ext,$(EXTS),$(NAME).$(ext))
updatepackage:
@$(WGET) https://git.mylloon.fr/Anri/projektor/raw/branch/main/projektor.sty \
-O $(PKG)