-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
51 lines (41 loc) · 1.46 KB
/
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
## standard makefile for tex documents
##
## Use gmake!!!
##
# name of the main tex or ltx file
DOC=thesis
DOC_BLIND=thesis_blind
BIBFILE=thesis
INPUTS=$(wildcard *.tex)
#FIG2DEV=softrun -e xfig -- fig2dev
#####################################################################
.SUFFIXES:
.PRECIOUS: %.dvi %.ps %.pdf
.PHONY: all ps pdf full check pdflatex
#####################################################################
all:
pdflatex $(DOC)
bibtex $(BIBFILE)
makeindex $(DOC)
#makeindex $(DOC).nlo -s nomencl.ist -o $(DOC).nls
pdflatex $(DOC)
pdflatex $(DOC)
rm -f $(DOC).out $(DOC).maf $(DOC).lof $(DOC).toc $(DOC).ind $(DOC).ilg $(DOC).idx $(DOC).brf $(DOC).bbl *.aux *.thm *.cb *.blg *.mlf* *.mtc* *.mlt* *.lot
quick:
pdflatex $(DOC)
rm -f $(DOC).out $(DOC).maf $(DOC).lof $(DOC).toc $(DOC).ind $(DOC).ilg $(DOC).idx $(DOC).brf $(DOC).bbl *.aux *.thm *.cb *.blg *.mlf* *.mtc* *.mlt* *.lot
check:
@echo ""
@echo " "`pdffonts $(DOC).pdf`
@grep -i underfull $(DOC).log | sort -n
@grep -i overfull $(DOC).log | sort -n
@grep -i warning $(DOC).log | sort
@echo ""
@echo " "`grep -i underfull $(DOC).log | wc -l` "underfull boxes"
@echo " "`grep -i overfull $(DOC).log | wc -l` "overfull boxes"
@echo " "`grep -i warning $(DOC).log | wc -l` "warnings"
@echo ""
clean:
rm -f $(DOC).bbl $(DOC).log $(DOC).pdf $(DOC).out $(DOC).maf $(DOC).lof $(DOC).toc $(DOC).ind $(DOC).ilg $(DOC).idx $(DOC).brf *.aux *.thm *.cb *.blg *.mlf* *.mtc* *.mlt* *.lot
force:
$(MAKE) -B