--- manual/Makefile	2004/03/24 22:35:28	1.24
+++ manual/Makefile	2010/08/28 22:57:11	1.30
@@ -1,52 +1,16 @@
+#
+#  $Header: /home/ubuntu/mnt/e9_copy/manual/Makefile,v 1.30 2010/08/28 22:57:11 jmc Exp $
+#  $Name:  $
+#
+
+#
 #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 "mitgcm-support@dev.mitgcm.org" \
+      -address "mitgcm-support@mitgcm.org" \
       -local_icons -noantialias -notransparent -white
 
 default:
@@ -65,9 +29,6 @@
 	make ps.gz
 	make html
 
-pt_files:
-	./run_protex $(PROTEX_PKGS)
-
 tex: manual.dvi
 
 ps: manual.ps
@@ -95,11 +56,13 @@
 
 subfigs: manual.tgz
 
-manual.dvi: *.tex */*.tex */*/*/*.tex */*.ps */*.eps */*/*/*.eps manual_references.bib
+manual.dvi: *.tex */*/*.tex */*/*.templ */*/*.ps */*/*.eps manual_references.bib
+	( cd s_examples/held_suarez_cs/  &&  make )
 	TEXINPUTS=.:::texinputs latex manual
 	bibtex manual
 	TEXINPUTS=.:::texinputs latex manual
-	TEXINPUTS=.:::texinputs latex manual | tee warnings
+	TEXINPUTS=.:::texinputs latex manual
+	tools/latex_warning.sh manual.log warnings
 
 manual.ps: manual.dvi
 	dvips -Pcmz -Pamz -o manual.ps manual.dvi
@@ -109,8 +72,10 @@
 
 clean: 
 	rm -f manual.{aux,bbl,blg,dvi,log,out,toc} warnings l2h.log
+
 Clean:
 	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}