-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
67 lines (58 loc) · 1.54 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# add the required target .tex files below
SRC =
SRC += thesis.tex
default: thesis.dvi
thesis.dvi: thesis.tex
thesis.dvi: database.bib
#DVI_TARGET = $(SRC:.tex=.dvi) $(SRC:.slitex=.dvi)
#PS_TARGET = $(SRC:.tex=.ps) $(SRC:.slitex=.ps)
#PDF_TARGET = $(SRC:.tex=.pdf) $(SRC:.slitex=.pdf)
all:
xelatex -no-pdf thesis.tex
bibtex thesis
xelatex -no-pdf thesis.tex
xelatex thesis.tex
#all: $(DVI_TARGET)
#ps: $(PS_TARGET)
#
#pdf: $(PDF_TARGET)
clean:
-rm -f *.aux *.bbl *.blg *.log *.toc *.lof *.lot *.glo *.idx
# DVI_TARGET, PS_TARGET, PDF_TARGET are wrong!!!, don't realclean for instance
realclean: clean
-rm -f *.bak *.dvi
# while [ "x`grep Rerun $${logfile}`" != "x" ] ; \
# the above one may not work sometimes
# while [ "x`grep 'undefined references' $${logfile}`" != "x" ] ; \
# this one always works but may cause deadlock if there are undefined label
#.slitex.dvi:
# slitex $<
# echo make $*.dvi done!
#
#.tex.dvi:
# xelatex $<
# # bibtex plus "et al. correction" for some bibliography style
# # the minus sign avoids error stopping when no citation encountered
# -bibtex $*
# -sed 's/and {\\it et al\.}/{\\it et al.}/' $*.bbl > $*.tmp
# -mv $*.tmp $*.bbl
# # latex several rounds until no dangling reference
# -logfile=$*.log; \
# while [ "x`egrep 'undefined references|Rerun' $${logfile}`" != "x" ]; \
# do xelatex $<; \
# done
# echo make $*.dvi done!
#
#.dvi.ps:
# dvips -D 600 $<
# @echo make $*.ps done!
#
#.dvi.eps:
# dvips -E -D 600 $<
# mv $*.ps $*.eps
# @echo make $*.eps done!
#
#.ps.pdf:
# /usr/bin/ps2pdf $<
# @echo make $*.pdf done!
#