--- manual/Makefile	2003/08/07 18:27:51	1.19
+++ manual/Makefile	2004/03/23 17:17:59	1.22
@@ -2,6 +2,49 @@
 #      -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 "mitgcm-support@dev.mitgcm.org" \
       -local_icons -noantialias -notransparent -white
@@ -22,6 +65,9 @@
 	make ps.gz
 	make html
 
+pt_files:
+	./run_protex $(PROTEX_PKGS)
+
 tex: manual.dvi
 
 ps: manual.ps
@@ -42,13 +88,15 @@
 	cd manual; ../tools/make_mail_subjects.sh
 	cd manual; ../tools/figsub.sh
 	cd manual; ../tools/fix_docref_target.sh
+	cd manual; ../tools/genredir.sh; mv mapping.txt ..
 	tar -czf manual.tgz manual
 
 l2h: l2h.tgz
 
 subfigs: manual.tgz
 
-manual.dvi: *.tex */*.tex */*/*/*.tex */*.ps */*.eps */*/*/*.eps
+manual.dvi: *.tex */*.tex */*/*/*.tex */*.ps */*.eps */*/*/*.eps manual_references.bib
+	make pt_files
 	TEXINPUTS=.:::texinputs latex manual
 	bibtex manual
 	TEXINPUTS=.:::texinputs latex manual