-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
26 lines (21 loc) · 868 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
TEXMFLOCAL="/home/crypto/texmf"
SOURCES=$(wildcard *.tex)
TARGETS=$(patsubst %.tex, %.pdf, ${SOURCES})
all : clean ${TARGETS}
${TARGETS} : %.pdf : %.tex $(wildcard %.bib)
@TEXMFLOCAL="${TEXMFLOCAL}" pdflatex ${*}
@if grep -q "bibliography" ${*}.tex ; then \
TEXMFLOCAL="${TEXMFLOCAL}" bibtex ${*} ; \
fi
@TEXMFLOCAL="${TEXMFLOCAL}" pdflatex ${*}
@if grep -q "bibliography" ${*}.tex ; then \
TEXMFLOCAL="${TEXMFLOCAL}" bibtex ${*} ; \
fi
@TEXMFLOCAL="${TEXMFLOCAL}" pdflatex ${*}
@TEXMFLOCAL="${TEXMFLOCAL}" hunspell -l -t -i utf-8 ${*}.tex | sort | uniq > spellcheck.txt
@TEXMFLOCAL="${TEXMFLOCAL}" texcount ${*}.tex
@TEXMFLOCAL="${TEXMFLOCAL}" detex ${*} | wc
clean :
@rm -f $(wildcard *.aux *.bbl *.blg *.loa *.lof *.log *.lol *.lot *.nav *.out *.snm *.toc)
spotless : clean
@rm -f $(wildcard *.pdf)