| 1 |
|
#L2H = -image_type gif -split 5 -show_section_numbers -link 2 \ |
| 2 |
|
# -address "<a href=mailto:support@mitgcm.org>support@mitgcm.org</a>" \ |
| 3 |
|
# -local_icons -noantialias -notransparent -white |
| 4 |
|
|
| 5 |
|
PROTEX_PKGS = \ |
| 6 |
|
aim \ |
| 7 |
|
aim_compon_interf \ |
| 8 |
|
aim_ocn_coupler \ |
| 9 |
|
aim_v23 \ |
| 10 |
|
autodiff \ |
| 11 |
|
bulk_force \ |
| 12 |
|
cal \ |
| 13 |
|
cd_code \ |
| 14 |
|
cfc \ |
| 15 |
|
compon_communic \ |
| 16 |
|
cost \ |
| 17 |
|
ctrl \ |
| 18 |
|
debug \ |
| 19 |
|
dic \ |
| 20 |
|
ecco \ |
| 21 |
|
exch2 \ |
| 22 |
|
exf \ |
| 23 |
|
fizhi \ |
| 24 |
|
flt \ |
| 25 |
|
gchem \ |
| 26 |
|
generic_advdiff \ |
| 27 |
|
gmredi \ |
| 28 |
|
grdchk \ |
| 29 |
|
gridalt \ |
| 30 |
|
kpp \ |
| 31 |
|
land \ |
| 32 |
|
mdsio \ |
| 33 |
|
mnc \ |
| 34 |
|
mom_fluxform \ |
| 35 |
|
mom_vecinv \ |
| 36 |
|
monitor \ |
| 37 |
|
obcs \ |
| 38 |
|
ocn_compon_interf \ |
| 39 |
|
ptracers \ |
| 40 |
|
rw \ |
| 41 |
|
sbo \ |
| 42 |
|
seaice \ |
| 43 |
|
shap_filt \ |
| 44 |
|
thsice \ |
| 45 |
|
timeave \ |
| 46 |
|
zonal_filt |
| 47 |
|
|
| 48 |
L2H = -image_type png -split 5 -show_section_numbers -link 2 \ |
L2H = -image_type png -split 5 -show_section_numbers -link 2 \ |
| 49 |
-address "<a href=mailto:support@mitgcm.org>support@mitgcm.org</a>" \ |
-address "<a href=mailto:support@mitgcm.org>mitgcm-support@dev.mitgcm.org</a>" \ |
| 50 |
-local_icons -noantialias -notransparent -white |
-local_icons -noantialias -notransparent -white |
| 51 |
|
|
| 52 |
default: |
default: |
| 62 |
make tex |
make tex |
| 63 |
make ps |
make ps |
| 64 |
make pdf |
make pdf |
| 65 |
|
make ps.gz |
| 66 |
make html |
make html |
| 67 |
|
|
| 68 |
tex: |
pt_files: |
| 69 |
TEXINPUTS=.:::texinputs latex manual |
./run_protex $(PROTEX_PKGS) |
| 70 |
bibtex manual |
|
| 71 |
TEXINPUTS=.:::texinputs latex manual |
tex: manual.dvi |
|
TEXINPUTS=.:::texinputs latex manual | tee warnings |
|
| 72 |
|
|
| 73 |
ps: manual.ps |
ps: manual.ps |
| 74 |
|
|
| 75 |
|
ps.gz: manual.ps |
| 76 |
|
gzip -9 -c manual.ps > manual.ps.gz |
| 77 |
|
|
| 78 |
pdf: manual.pdf |
pdf: manual.pdf |
| 79 |
|
|
| 80 |
|
#eh3 WARNING: due to the make dependencies, using the following rule will |
| 81 |
|
#eh3 *always* result in running the "manual.dvi" and "l2h.tgz" rules |
| 82 |
|
#eh3 *TWICE* due to the "*/*.ps" entry in the dependency list! |
| 83 |
|
#eh3 html: |
| 84 |
|
#eh3 make l2h |
| 85 |
|
#eh3 make subfigs |
| 86 |
|
html: |
| 87 |
|
make l2h |
| 88 |
|
cd manual; ../tools/make_mail_subjects.sh |
| 89 |
|
cd manual; ../tools/figsub.sh |
| 90 |
|
cd manual; ../tools/fix_docref_target.sh |
| 91 |
|
cd manual; ../tools/genredir.sh; mv mapping.txt .. |
| 92 |
|
tar -czf manual.tgz manual |
| 93 |
|
|
| 94 |
|
l2h: l2h.tgz |
| 95 |
|
|
| 96 |
|
subfigs: manual.tgz |
| 97 |
|
|
| 98 |
|
manual.dvi: *.tex */*.tex */*/*/*.tex */*.ps */*.eps */*/*/*.eps manual_references.bib |
| 99 |
|
TEXINPUTS=.:::texinputs latex manual |
| 100 |
|
bibtex manual |
| 101 |
|
TEXINPUTS=.:::texinputs latex manual |
| 102 |
|
TEXINPUTS=.:::texinputs latex manual | tee warnings |
| 103 |
|
|
| 104 |
manual.ps: manual.dvi |
manual.ps: manual.dvi |
| 105 |
dvips -Pcmz -Pamz -Ppdf -o manual.ps manual.dvi |
dvips -Pcmz -Pamz -o manual.ps manual.dvi |
| 106 |
|
|
| 107 |
manual.pdf: manual.ps |
manual.pdf: manual.ps |
| 108 |
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 |
| 109 |
|
|
| 110 |
clean: |
clean: |
| 111 |
rm -f manual.{aux,bbl,blg,dvi,log,out,toc} |
rm -f manual.{aux,bbl,blg,dvi,log,out,toc} warnings l2h.log |
| 112 |
Clean: |
Clean: |
| 113 |
make clean |
make clean |
| 114 |
rm -f manual.{ps,pdf} |
rm -f manual.{ps,pdf,ps.gz} |
| 115 |
rm -rf manual |
rm -rf manual |
| 116 |
rm -f manual.{tz,tgz} mbkup.{tz,tgz} |
rm -f manual.{tz,tgz} mbkup.{tz,tgz} l2h.{tz,tgz} |
| 117 |
|
|
| 118 |
# Note - the noantialias option here does not affect the gif images |
# Note - the noantialias option here does not affect the gif images |
| 119 |
# that are generated. However, it does make ppmquant to run in |
# that are generated. However, it does make ppmquant to run in |
| 132 |
# /usr/bin/ppmquant.orig 256 |
# /usr/bin/ppmquant.orig 256 |
| 133 |
# ! |
# ! |
| 134 |
|
|
|
html: |
|
|
make l2h |
|
|
make subfigs |
|
|
|
|
|
l2h: |
|
|
latex2html $(L2H) manual |
|
|
|
|
| 135 |
debugl2h: |
debugl2h: |
| 136 |
latex2html -debug -nodiscard -ldump $(L2H) manual |
/usr/bin/latex2html -debug -nodiscard -ldump $(L2H) manual |
| 137 |
|
|
| 138 |
|
l2h.tgz: manual.dvi |
| 139 |
|
/usr/bin/latex2html $(L2H) manual | tee l2h.log |
| 140 |
|
tar -czf l2h.tgz manual |
| 141 |
|
|
| 142 |
subfigs: |
manual.tgz: l2h.tgz |
|
tar -czf mbkup.tgz manual |
|
| 143 |
cd manual; ../tools/make_mail_subjects.sh |
cd manual; ../tools/make_mail_subjects.sh |
| 144 |
cd manual; ../tools/figsub.sh |
cd manual; ../tools/figsub.sh |
| 145 |
cd manual; ../tools/fix_docref_target.sh |
cd manual; ../tools/fix_docref_target.sh |