/[MITgcm]/manual/Makefile
ViewVC logotype

Diff of /manual/Makefile

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

--- manual/Makefile	2002/04/24 20:48:16	1.15
+++ manual/Makefile	2002/09/20 19:35:20	1.16
@@ -1,3 +1,7 @@
+L2H = -image_type gif -split 5 -show_section_numbers -link 2 \
+      -address "<a href=mailto:support@mitgcm.org>support@mitgcm.org</a>" \
+      -local_icons -noantialias -notransparent -white
+
 L2H = -image_type png -split 5 -show_section_numbers -link 2 \
       -address "<a href=mailto:support@mitgcm.org>support@mitgcm.org</a>" \
       -local_icons -noantialias -notransparent -white
@@ -18,11 +22,7 @@
 	make ps.gz
 	make html
 
-tex:
-	TEXINPUTS=.:::texinputs latex manual
-	bibtex manual
-	TEXINPUTS=.:::texinputs latex manual
-	TEXINPUTS=.:::texinputs latex manual | tee warnings
+tex: manual.dvi
 
 ps: manual.ps
 
@@ -31,6 +31,20 @@
 
 pdf: manual.pdf
 
+html:
+	make l2h
+	make subfigs
+
+l2h: l2h.tgz
+
+subfigs: manual.tgz
+
+manual.dvi: *.tex */*.tex */*/*/*.tex */*.ps */*.eps */*/*/*.eps
+	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
 
@@ -38,10 +52,10 @@
 	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 +76,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

 

  ViewVC Help
Powered by ViewVC 1.1.22