Skip to content
Snippets Groups Projects
vars 704 B
Newer Older
  • Learn to ignore specific revisions
  • 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=$@ $<
    
    
    Malin Freeborn's avatar
    Malin Freeborn committed
    CP := ln -f
    BOOK := $(shell basename "$$(pwd)")
    
    LOCAL_DROSS := rubbish
    DROSS := ../$(LOCAL_DROSS)
    COMPILER := latexmk -file-line-error -auxdir=$(DROSS) -pdflua -silent -shell-escape -r config/.latexmkrc -jobname=$(BOOK)
    
    RELEASE := $(BOOK)-$(VERSION).pdf
    
    Malin Freeborn's avatar
    Malin Freeborn committed
    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)