1 |
|
# |
2 |
|
# $Header$ |
3 |
|
# $Name$ |
4 |
|
# |
5 |
|
|
6 |
|
# |
7 |
|
#L2H = -image_type gif -split 5 -show_section_numbers -link 2 \ |
8 |
|
# -address "<a href=mailto:support@mitgcm.org>support@mitgcm.org</a>" \ |
9 |
|
# -local_icons -noantialias -notransparent -white |
10 |
|
|
11 |
|
|
12 |
|
L2H = -image_type png -split 5 -show_section_numbers -link 2 \ |
13 |
|
-address "<a href=mailto:support@mitgcm.org>mitgcm-support@mitgcm.org</a>" \ |
14 |
|
-local_icons -noantialias -notransparent -white |
15 |
|
|
16 |
default: |
default: |
17 |
@echo "Targets" |
@echo "Targets" |
18 |
@echo " make all - just the tex " |
@echo " make all - everything in order" |
19 |
@echo " make tex - tex and bibliograohy" |
@echo " make tex - tex and bibliograohy" |
20 |
@echo " make ps - postscript form of manual" |
@echo " make ps - postscript form of manual" |
21 |
@echo " make pdf - pdf form of manual" |
@echo " make pdf - pdf form of manual" |
22 |
@echo " make html - hypertext form of manual" |
@echo " make l2h - latex2html of manual" |
23 |
|
@echo " make html - hypertext form of manual with substitutions" |
24 |
|
|
25 |
all: |
all: |
26 |
make tex |
make tex |
27 |
|
make ps |
28 |
|
make pdf |
29 |
|
make ps.gz |
30 |
|
make html |
31 |
|
|
32 |
|
tex: manual.dvi |
33 |
|
|
34 |
|
ps: manual.ps |
35 |
|
|
36 |
|
ps.gz: manual.ps |
37 |
|
gzip -9 -c manual.ps > manual.ps.gz |
38 |
|
|
39 |
|
pdf: manual.pdf |
40 |
|
|
41 |
tex: |
#eh3 WARNING: due to the make dependencies, using the following rule will |
42 |
|
#eh3 *always* result in running the "manual.dvi" and "l2h.tgz" rules |
43 |
|
#eh3 *TWICE* due to the "*/*.ps" entry in the dependency list! |
44 |
|
#eh3 html: |
45 |
|
#eh3 make l2h |
46 |
|
#eh3 make subfigs |
47 |
|
html: |
48 |
|
make l2h |
49 |
|
cd manual; ../tools/make_mail_subjects.sh |
50 |
|
cd manual; ../tools/figsub.sh |
51 |
|
cd manual; ../tools/fix_docref_target.sh |
52 |
|
cd manual; ../tools/genredir.sh |
53 |
|
tar -czf manual.tgz manual |
54 |
|
|
55 |
|
l2h: l2h.tgz |
56 |
|
|
57 |
|
subfigs: manual.tgz |
58 |
|
|
59 |
|
manual.dvi: *.tex */*/*.tex */*/*.templ */*/*.ps */*/*.eps manual_references.bib |
60 |
|
( cd s_examples/global_oce_latlon/ && make ) |
61 |
|
( cd s_examples/held_suarez_cs/ && make ) |
62 |
TEXINPUTS=.:::texinputs latex manual |
TEXINPUTS=.:::texinputs latex manual |
63 |
bibtex manual |
bibtex manual |
64 |
TEXINPUTS=.:::texinputs latex manual |
TEXINPUTS=.:::texinputs latex manual |
65 |
TEXINPUTS=.:::texinputs latex manual | tee warnings |
TEXINPUTS=.:::texinputs latex manual |
66 |
# TEXINPUTS=.:::texinputs latex manual |
tools/latex_warning.sh manual.log warnings |
|
ps: manual.ps |
|
|
pdf: manual.pdf |
|
67 |
|
|
68 |
manual.ps: manual.dvi |
manual.ps: manual.dvi |
69 |
dvips -Pcmz -Pamz -Ppdf -o manual.ps manual.dvi |
dvips -Pcmz -Pamz -o manual.ps manual.dvi |
70 |
|
|
71 |
manual.pdf: manual.ps |
manual.pdf: manual.ps |
72 |
ps2pdf -dMaxSubsetPct=100 -dCompatibilityLevel=1.2 -dSubsetFonts=true -dEmbedAllFonts=true manual.ps manual.pdf |
ps2pdf -dMaxSubsetPct=100 -dCompatibilityLevel=1.2 -dSubsetFonts=true -dEmbedAllFonts=true manual.ps manual.pdf |
73 |
|
|
74 |
|
clean: |
75 |
|
rm -f manual.{aux,bbl,blg,dvi,log,out,toc} warnings l2h.log |
76 |
|
|
77 |
|
Clean: |
78 |
|
make clean |
79 |
|
( cd s_examples/global_oce_latlon/ && make Clean ) |
80 |
|
( cd s_examples/held_suarez_cs/ && make Clean ) |
81 |
|
rm -f manual.{ps,pdf,ps.gz} |
82 |
|
rm -rf manual |
83 |
|
rm -f manual.{tz,tgz} mbkup.{tz,tgz} l2h.{tz,tgz} |
84 |
|
|
85 |
# Note - the noantialias option here does not affect the gif images |
# Note - the noantialias option here does not affect the gif images |
86 |
# that are generated. However, it does make ppmquant to run in |
# that are generated. However, it does make ppmquant to run in |
87 |
# a way that leaves out the -floyd option. This option |
# a way that leaves out the -floyd option. This option |
99 |
# /usr/bin/ppmquant.orig 256 |
# /usr/bin/ppmquant.orig 256 |
100 |
# ! |
# ! |
101 |
|
|
102 |
|
debugl2h: |
103 |
|
/usr/bin/latex2html -debug -nodiscard -ldump $(L2H) manual |
104 |
|
|
105 |
html: |
l2h.tgz: manual.dvi |
106 |
latex2html -image_type gif -split 5 -show_section_numbers -link 2 -address "<a href=mailto:support@mitgcm.org>support@mitgcm.org</a>" -local_icons -noantialias -white manual |
/usr/bin/latex2html $(L2H) manual | tee l2h.log |
107 |
|
tar -czf l2h.tgz manual |
108 |
html2: |
|
109 |
latex2html -image_type gif -split 5 -show_section_numbers -link 2 -address "<a href=mailto:support@mitgc,.org>support@mitgcm.org</a>" -noantialias -local_icons -white -debug m2 |
manual.tgz: l2h.tgz |
110 |
|
cd manual; ../tools/make_mail_subjects.sh |
111 |
|
cd manual; ../tools/figsub.sh |
112 |
|
cd manual; ../tools/fix_docref_target.sh |
113 |
|
tar -czf manual.tgz manual |