--- manual/Makefile 2002/04/24 20:48:16 1.15
+++ manual/Makefile 2004/02/04 04:49:19 1.21
@@ -1,5 +1,52 @@
+#L2H = -image_type gif -split 5 -show_section_numbers -link 2 \
+# -address "support@mitgcm.org" \
+# -local_icons -noantialias -notransparent -white
+
+PROTEX_PKGS = \
+ aim \
+ aim_compon_interf \
+ aim_ocn_coupler \
+ aim_v23 \
+ autodiff \
+ bulk_force \
+ cal \
+ cd_code \
+ cfc \
+ compon_communic \
+ cost \
+ ctrl \
+ debug \
+ dic \
+ ecco \
+ exch2 \
+ exf \
+ fizhi \
+ flt \
+ gchem \
+ generic_advdiff \
+ gmredi \
+ grdchk \
+ gridalt \
+ kpp \
+ land \
+ mdsio \
+ mnc \
+ mom_fluxform \
+ mom_vecinv \
+ monitor \
+ obcs \
+ ocn_compon_interf \
+ ptracers \
+ rw \
+ sbo \
+ seaice \
+ shap_filt \
+ thsice \
+ timeave \
+ zonal_filt
+
L2H = -image_type png -split 5 -show_section_numbers -link 2 \
- -address "support@mitgcm.org" \
+ -address "mitgcm-support@dev.mitgcm.org" \
-local_icons -noantialias -notransparent -white
default:
@@ -18,11 +65,10 @@
make ps.gz
make html
-tex:
- TEXINPUTS=.:::texinputs latex manual
- bibtex manual
- TEXINPUTS=.:::texinputs latex manual
- TEXINPUTS=.:::texinputs latex manual | tee warnings
+pt_files:
+ ./run_protex $(PROTEX_PKGS)
+
+tex: manual.dvi
ps: manual.ps
@@ -31,17 +77,41 @@
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
+ tar -czf manual.tgz manual
+
+l2h: l2h.tgz
+
+subfigs: manual.tgz
+
+manual.dvi: *.tex */*.tex */*/*/*.tex */*.ps */*.eps */*/*/*.eps manual_references.bib
+ make pt_files
+ TEXINPUTS=.:::texinputs latex manual
+ bibtex manual
+ TEXINPUTS=.:::texinputs latex manual
+ TEXINPUTS=.:::texinputs latex manual | tee warnings
+
manual.ps: manual.dvi
- dvips -Pcmz -Pamz -Ppdf -o 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}
+ rm -f manual.{aux,bbl,blg,dvi,log,out,toc} warnings l2h.log
Clean:
make clean
- rm -f manual.{ps,pdf}
+ rm -f manual.{ps,pdf,ps.gz}
rm -rf manual
rm -f manual.{tz,tgz} mbkup.{tz,tgz} l2h.{tz,tgz}
@@ -62,18 +132,14 @@
# /usr/bin/ppmquant.orig 256
# !
-html:
- make l2h
- make subfigs
+debugl2h:
+ /usr/bin/latex2html -debug -nodiscard -ldump $(L2H) manual
-l2h:
- latex2html $(L2H) manual
+l2h.tgz: manual.dvi
+ /usr/bin/latex2html $(L2H) manual | tee l2h.log
tar -czf l2h.tgz manual
-debugl2h:
- latex2html -debug -nodiscard -ldump $(L2H) manual
-
-subfigs:
+manual.tgz: l2h.tgz
cd manual; ../tools/make_mail_subjects.sh
cd manual; ../tools/figsub.sh
cd manual; ../tools/fix_docref_target.sh