VERSION != git tag | tail -1 QR_TARGET != grep mailto: README.md | cut -d: -f2,3 COMPRESS = gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.5 -dNOPAUSE -dQUIET -dBATCH -dPrinted=false -sOutputFile=$@ $< CP := ln -f BOOK := $(shell basename "$$(pwd)") LOCAL_DROSS := rubbish DROSS := ../$(LOCAL_DROSS) COMPILER := latexmk -file-line-error -auxdir=$(DROSS) -pdflua -interaction=nonstopmode -halt-on-error -shell-escape -r config/.latexmkrc -jobname=$(BOOK) RELEASE := $(BOOK)-$(VERSION).pdf GLOS := makeglossaries -d $(DROSS) RUN := lualatex -output-directory $(DROSS) -shell-escape CLEAN := $(RM) -r $(DROSS) $(LOCAL_DROSS) qr.tex *.pdf .switch-gls svg-inkscape DEPS := $(wildcard *.tex) $(wildcard config/*sty) $(wildcard $(DROSS)/*.glg)