Skip to content
Snippets Groups Projects
vars 607 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)")
    DROSS := $(shell head -1 .gitignore)
    COMPILER := latexmk -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
    
    Malin Freeborn's avatar
    Malin Freeborn committed
    CLEAN := $(RM) -r $(DROSS) qr.tex *.pdf .switch-gls svg-inkscape
    
    Malin Freeborn's avatar
    Malin Freeborn committed
    DEPS := *tex config/*sty