1
|
1 MAKE=make -f Makefile
|
|
2 LATEX=uplatex
|
|
3 BIBTEX=pbibtex
|
|
4 MAKEINDEX=upmendex
|
|
5 DVIPS=dvips
|
|
6 DVIPDFM=dvipdfmx
|
|
7
|
|
8
|
|
9 TARGET=master_paper
|
|
10 PS_SUFFIX=.ps
|
|
11 PDF_SUFFIX=.pdf
|
|
12
|
|
13 .SUFFIXES: .tex .dvi
|
|
14
|
|
15 # commands
|
|
16 .PHONY : clean open remake
|
|
17
|
|
18 $(TARGET).pdf:$(TARGET).dvi
|
|
19 @echo "========== GENERATE PDF file =========="
|
|
20 $(LATEX) $(TARGET) > /dev/null
|
|
21 $(DVIPDFM) $(TARGET)
|
|
22 open $(TARGET).pdf
|
|
23
|
|
24 $(TARGET).dvi: $(wildcard *.tex) $(wildcard chapter/*.tex)
|
|
25 @echo "========== PUBLISHING =========="
|
|
26 @echo "\t first..."
|
|
27 $(LATEX) $(TARGET)
|
|
28 $(LATEX) $(TARGET) > /dev/null
|
|
29 $(BIBTEX) $(TARGET)
|
|
30 -$(MAKEINDEX) $(TARGET)
|
|
31 @echo "\t second..."
|
|
32 $(LATEX) $(TARGET) > /dev/null
|
|
33
|
|
34
|
|
35 open:$(TARGET).pdf
|
|
36 open $(TARGET).pdf
|
|
37
|
|
38 clean:
|
7
|
39 rm -f *.dvi *.aux *.log *.ilg *.ps *.gz *.bbl *.blg *.toc *~ *.core *.cpt *.lof *.lot *.lol *.bbl *.blg *.idx src/**/*.replaced *.fdb_latexmk *.fls
|
1
|
40
|
|
41 remake:
|
|
42 make clean
|
|
43 make
|