-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
53 lines (41 loc) · 1.01 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
LATEX_TOOL := pdflatex
BIBTEX_TOOL := bibtex
DVIPDF_TOOL := dvipdfm
VIEW_TOOL := evince
PAPER_BASE := paper
TARGETS :=
TARGETS += paper.pdf
PLOTS =
PAPER_PART :=
PAPER_PART += $(TARGETS:%.pdf=%.tex)
PAPER_PART += 00-abstract.tex
PAPER_PART += 01-intro.tex
PAPER_PART += 02-related.tex
PAPER_PART += 03-design.tex
PAPER_PART += 04-evaluation.tex
PAPER_PART += 05-conclusion.tex
# add .tex files
.PHONY: clean view all plots
all: $(TARGETS)
$(TARGETS): plot_dir
plot_dir:
make -C plots
paper-ieee.pdf: IEEEtran.cls
paper-ieee.pdf: IEEEtranBST/IEEEtran.bst
paper-ieee.pdf: paper.bib
plots:
$(MAKE) $(MFLAGS) -C plots
export BIBINPUTS=.:./IEEEtranBST/
export BSTINPUTS=.:./IEEEtranBST/
%.pdf: %.tex ${PAPER_PART}
${LATEX_TOOL} ${PAPER_BASE}
@echo BIBINPUTS $(BIBINPUTS)
${BIBTEX_TOOL} ${PAPER_BASE}
${LATEX_TOOL} ${PAPER_BASE}
${LATEX_TOOL} ${PAPER_BASE}
# ${DVIPDF_TOOL} ${PAPER_BASE}
view: ${TARGETS}
${VIEW_TOOL} $?
clean:
rm -f *.aux *.log *.dvi *.pdf *.bbl *.blg
$(MAKE) $(MFLAGS) -C plots clean