-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
路56 lines (42 loc) 路 1.15 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
#!/bin/sh
PS2PDF = ps2pdf14
DVIPS = dvips
LATEX = latex
BIBTEX = bibtex
READER = acroread
PSVIEWER = gv
FILENAME = thesis
BIBFILE = thesisbib
TEXFILE = $(FILENAME).tex
DVIFILE = $(FILENAME).dvi
PSFILE = $(FILENAME).ps
PDFFILE = $(FILENAME).pdf
CLEANFILES = *.aux *.bbl *.dvi *.ps *.pdf *.lot *.lof *~ *.toc *.log *.backup \
*.cb *.blg
TEX = thesis.tex title.tex acknowledgements.tex abstract.tex zusammefassung.tex \
introduction.tex chapter1.tex chapter2.tex conclusion.tex futurework.tex \
appendix.tex
DVIS = thesis.dvi title.dvi acknowledgements.dvi abstract.dvi zusammefassung.dvi \
introduction.dvi chapter1.dvi chapter2.dvi conclusion.dvi futurework.dvi \
appendix.dvi
PS = thesis.ps title.ps acknowledgements.ps abstract.ps zusammefassung.ps \
introduction.ps chapter1.ps chapter2.ps conclusion.ps futurework.ps \
appendix.ps
GOALS = $(PSFILE)
all: clean $(GOALS)
%.dvi: %.tex
$(LATEX) $<
$(BIBTEX) $(FILENAME)
$(LATEX) $<
$(LATEX) $<
$(LATEX) $<
%.ps: %.dvi
$(DVIPS) $< -o $@
$(PSVIEWER) $(PSFILE)
%.pdf: %.ps
$(PS2PDF) $(PSFILE) $(PDFFILE)
$(READER) $(PDFILE)
clean:
echo "removing files"
-rm -f $(CLEANFILES)
.PHONY: clean