init-projects/latex/presentation/Makefile

28 lines
565 B
Makefile
Raw Normal View History

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