This repository has been archived by the owner on Feb 8, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
113 lines (92 loc) · 3.33 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
#
# $Header: /u/gcmpack/manual/Makefile,v 1.31 2011/04/21 20:14:39 jmc Exp $
# $Name: $
#
#
#L2H = -image_type gif -split 5 -show_section_numbers -link 2 \
# -address "<a href=mailto:[email protected]>[email protected]</a>" \
# -local_icons -noantialias -notransparent -white
L2H = -image_type png -split 5 -show_section_numbers -link 2 \
-address "<a href=mailto:[email protected]>[email protected]</a>" \
-local_icons -noantialias -notransparent -white
default:
@echo "Targets"
@echo " make all - everything in order"
@echo " make tex - tex and bibliograohy"
@echo " make ps - postscript form of manual"
@echo " make pdf - pdf form of manual"
@echo " make l2h - latex2html of manual"
@echo " make html - hypertext form of manual with substitutions"
all:
make tex
make ps
make pdf
make ps.gz
make html
tex: manual.dvi
ps: manual.ps
ps.gz: manual.ps
gzip -9 -c manual.ps > manual.ps.gz
pdf: manual.pdf
#eh3 WARNING: due to the make dependencies, using the following rule will
#eh3 *always* result in running the "manual.dvi" and "l2h.tgz" rules
#eh3 *TWICE* due to the "*/*.ps" entry in the dependency list!
#eh3 html:
#eh3 make l2h
#eh3 make subfigs
html:
make l2h
cd manual; ../tools/make_mail_subjects.sh
cd manual; ../tools/figsub.sh
cd manual; ../tools/fix_docref_target.sh
cd manual; ../tools/genredir.sh
tar -czf manual.tgz manual
l2h: l2h.tgz
subfigs: manual.tgz
manual.dvi: *.tex */*/*.tex */*/*.templ */*/*.ps */*/*.eps manual_references.bib
( cd s_examples/global_oce_latlon/ && make )
( cd s_examples/held_suarez_cs/ && make )
TEXINPUTS=.:::texinputs latex manual
bibtex manual
TEXINPUTS=.:::texinputs latex manual
TEXINPUTS=.:::texinputs latex manual
tools/latex_warning.sh manual.log warnings
manual.ps: manual.dvi
dvips -Pcmz -Pamz -o manual.ps manual.dvi
manual.pdf: manual.ps
ps2pdf -dMaxSubsetPct=100 -dCompatibilityLevel=1.2 -dSubsetFonts=true -dEmbedAllFonts=true manual.ps manual.pdf
clean:
rm -f manual.{aux,bbl,blg,dvi,log,out,toc} warnings l2h.log
Clean:
make clean
( cd s_examples/global_oce_latlon/ && make Clean )
( cd s_examples/held_suarez_cs/ && make Clean )
rm -f manual.{ps,pdf,ps.gz}
rm -rf manual
rm -f manual.{tz,tgz} mbkup.{tz,tgz} l2h.{tz,tgz}
# Note - the noantialias option here does not affect the gif images
# that are generated. However, it does make ppmquant to run in
# a way that leaves out the -floyd option. This option
# causes problems with some figures. If you really want
# to use -antialias then you need to turn off the -floyd option.
# To do this either
# 1. edit the pstoimg script that comes with latex2html
# 2. rename /usr/bin/ppmquant to /usr/bin/ppmquant.orig and
# create a shell script that calls /usr/bin/ppmquant.orig
# with just the option -256.
# e.g.
# mv /usr/bin/ppmquant /usr/bin/ppmquant.orig
# cat > /usr/bin/ppmquant <<!
# #!/bin/csh -f
# /usr/bin/ppmquant.orig 256
# !
debugl2h:
/usr/bin/latex2html -debug -nodiscard -ldump $(L2H) manual
l2h.tgz: manual.dvi
/usr/bin/latex2html $(L2H) manual | tee l2h.log
tar -czf l2h.tgz manual
manual.tgz: l2h.tgz
cd manual; ../tools/make_mail_subjects.sh
cd manual; ../tools/figsub.sh
cd manual; ../tools/fix_docref_target.sh
tar -czf manual.tgz manual