wifi-printer/examples/Makefile

32 lines
589 B
Makefile
Raw Normal View History

NAMES = one two
TEX = $(foreach i,$(NAMES),$(i).tex)
PDF = $(TEX:.tex=.pdf)
CLS = wifi.cls
TEXMK = latexmk -lualatex -shell-escape -interaction=nonstopmode
WGET = wget -q --show-progress
RM = rm -f
all: $(PDF)
$(PDF): %.pdf: %.tex
ifneq (,$(wildcard $(CLS)))
@$(TEXMK) $<
else
@$(MAKE) updateclass
@$(MAKE) $@
endif
EXTS = aux fdb_latexmk fls log out synctex.gz
clean:
$(RM) $(foreach file,$(NAMES),$(foreach ext,$(EXTS),$(file).$(ext)))
full-clean: clean
$(RM) $(PDF)
updateclass:
@$(WGET) https://git.mylloon.fr/Anri/wifi-printer/raw/branch/main/wifi.cls \
-O $(CLS)