-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
35 lines (30 loc) · 910 Bytes
/
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
LATEX=pdflatex
#$(LATEX)=$(LATEX)
DOC=mythesis
all: FORCE
$(LATEX) -draftmode $(DOC)
bibtex $(DOC)
$(LATEX) -draftmode $(DOC)
$(LATEX) -draftmode $(DOC)
$(LATEX) $(DOC)
# next target is preferred, but not everyone has latexmk so it's not the deault
allnew:
latexmk -pdf -bibtex $(DOC)
FORCE:
VERSION=0.10
LIB=ocethesis.cls ocethesis.bst ocethesisbib.sty Makefile README.txt README.pdf
EXAMPLE=$(DOC).tex chapter1.tex appendix1.tex abstract.tex acknowledgment.tex literature.bib symbols.tex figure1.pdf figure1.ps
FILES=$(LIB) $(EXAMPLE)
ZIP=ocethesis_$(VERSION)
dist:
rm -rf $(ZIP)
rm -f $(ZIP).zip
mkdir $(ZIP)
cp $(FILES) $(ZIP)
zip -r $(ZIP).zip $(ZIP)
rm -rf $(ZIP)
-echo "Please do cp $(ZIP).zip ocethesis.php ../GCocean-web/ocethesis"
clean:
-rm *.aux $(DOC).lot $(DOC).lof $(DOC).toc $(DOC).dvi $(DOC).blg $(DOC).bbl *.log $(DOC).out $(DOC).ist $(DOC).glo
-rm *~
-rm *.latexmk