download projektor then build instead of exiting

This commit is contained in:
Mylloon 2024-04-20 15:34:23 +02:00
parent a6a87e467f
commit f1f4c2aa85
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -16,13 +16,18 @@ $(PDF): %.pdf: %.tex
ifneq (,$(wildcard $(PKG))) ifneq (,$(wildcard $(PKG)))
@$(TEXMK) $< @$(TEXMK) $<
else else
@echo "Can't proceed, $(PKG) missing." @$(MAKE) updatepackage
@$(MAKE) $@
endif 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:
$(RM) $(PDF) _minted-$(NAME)/ $(foreach ext,$(EXTS),$(NAME).$(ext)) $(RM) $(PDF) _minted-$(NAME)/ $(foreach ext,$(EXTS),$(NAME).$(ext))
full-clean:
$(RM) $(PKG)
@$(MAKE) 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 $(PKG) -O $(PKG)