-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
45 lines (32 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
MAIN = MainDoc
BIBFILE = MainDoc
CHAPTERPREFIX = Chapter
TODO = todo
PDFLATEX = pdflatex
RTFLATEX = latex2rtf
BIBTEX = bibtex
INDEX = makeindex
default: all
all: buildmain cleanmost todo cleanlog
buildmain: cleanmain
$(PDFLATEX) -draftmode $(MAIN).tex
$(BIBTEX) $(BIBFILE)
$(INDEX) $(BIBFILE)
$(PDFLATEX) -draftmode $(MAIN).tex
$(PDFLATEX) $(MAIN).tex
todo:
python $(TODO).py
date
cleanmost:
rm -rf $(MAIN).out $(MAIN).toc $(MAIN).idx $(MAIN).lot $(MAIN).lof $(MAIN).ind $(MAIN).ilg $(MAIN).blg $(MAIN).bbl $(MAIN).dvi $(CHAPTERPREFIX)1.aux $(CHAPTERPREFIX)2.aux $(CHAPTERPREFIX)3.aux $(CHAPTERPREFIX)4.aux $(CHAPTERPREFIX)5.aux $(CHAPTERPREFIX)6.aux
cleanlog:
rm -rf $(MAIN).log $(MAIN).aux
cleanmain:
rm -rf $(MAIN).pdf $(TODO).html
clean: cleanmost cleanlog cleanmain
rtf: cleanmain
$(PDFLATEX) $(MAIN).tex
$(BIBTEX) $(BIBFILE)
$(INDEX) $(BIBFILE)
$(PDFLATEX) $(MAIN).tex
$(RTFLATEX) $(MAIN).tex