verify that dependencie is correctly downloaded
This commit is contained in:
parent
8f0b120d19
commit
d9670b3503
1 changed files with 7 additions and 2 deletions
|
@ -3,6 +3,7 @@ NAME = slides
|
||||||
TEX = $(NAME).tex
|
TEX = $(NAME).tex
|
||||||
SRC = $(TEX)
|
SRC = $(TEX)
|
||||||
PDF = $(TEX:.tex=.pdf)
|
PDF = $(TEX:.tex=.pdf)
|
||||||
|
PKG = projektor.sty
|
||||||
|
|
||||||
TEXMK = latexmk -lualatex -shell-escape
|
TEXMK = latexmk -lualatex -shell-escape
|
||||||
WGET = wget -q --show-progress
|
WGET = wget -q --show-progress
|
||||||
|
@ -11,7 +12,11 @@ WGET = wget -q --show-progress
|
||||||
all: $(PDF)
|
all: $(PDF)
|
||||||
|
|
||||||
$(PDF): %.pdf: %.tex
|
$(PDF): %.pdf: %.tex
|
||||||
$(TEXMK) $<
|
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
|
EXTS = aux fdb_latexmk fls log nav out snm synctex.gz toc vrb
|
||||||
clean:
|
clean:
|
||||||
|
@ -19,4 +24,4 @@ clean:
|
||||||
|
|
||||||
updatepackage:
|
updatepackage:
|
||||||
@$(WGET) https://git.mylloon.fr/Anri/projektor/raw/branch/main/projektor.sty \
|
@$(WGET) https://git.mylloon.fr/Anri/projektor/raw/branch/main/projektor.sty \
|
||||||
-O projektor.sty
|
-O $(PKG)
|
||||||
|
|
Loading…
Reference in a new issue