Newer
Older
BOOK = $(shell basename "$$(pwd)")
output: $(BOOK).pdf
svg-inkscape: | config/bind.sty
@pdflatex -shell-escape -jobname $(BOOK) main.tex
$(BOOK).glo: | svg-inkscape
@pdflatex -jobname $(BOOK) main.tex
$(BOOK).sls: | $(BOOK).glo
@makeglossaries $(BOOK)
$(BOOK).pdf: $(BOOK).sls $(wildcard *.tex) $(wildcard config/*.sty)
@latexmk -jobname=$(BOOK) -shell-escape -pdf main.tex
rm -fr *.aux *.sls *.slo *.slg *.toc *.acn *.log *.out *.idx *.ist *.glo *.glg *.gls *.acr *.alg \
*.pdf \
svg-inkscape \
*.fdb_latexmk \
*.fls