| 1 | 
  | 
 default: | 
| 2 | 
  | 
         @echo "Targets" | 
| 3 | 
  | 
         @echo " make all  - just the tex " | 
| 4 | 
  | 
         @echo " make tex  - tex and bibliograohy" | 
| 5 | 
  | 
         @echo " make ps   - postscript form of manual" | 
| 6 | 
  | 
         @echo " make pdf  - pdf form of manual" | 
| 7 | 
  | 
         @echo " make html - hypertext form of manual" | 
| 8 | 
 all: | 
 all: | 
| 9 | 
         make tex | 
         make tex | 
| 10 | 
  | 
  | 
| 11 | 
 tex: | 
 tex: | 
| 12 | 
         latex manual | 
         TEXINPUTS=.:::texinputs latex manual | 
| 13 | 
         bibtex manual | 
         bibtex manual | 
| 14 | 
         latex manual | 
         TEXINPUTS=.:::texinputs latex manual | 
| 15 | 
         latex manual | 
         TEXINPUTS=.:::texinputs latex manual | tee warnings | 
| 16 | 
  | 
 #       TEXINPUTS=.:::texinputs latex manual | 
| 17 | 
 ps: manual.ps | 
 ps: manual.ps | 
| 18 | 
 pdf: manual.pdf | 
 pdf: manual.pdf | 
| 19 | 
  | 
  | 
| 23 | 
 manual.pdf: manual.ps | 
 manual.pdf: manual.ps | 
| 24 | 
         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 | 
| 25 | 
  | 
  | 
| 26 | 
  | 
 # Note - the noantialias option here does not affect the gif images | 
| 27 | 
  | 
 #        that are generated. However, it does make ppmquant to run in | 
| 28 | 
  | 
 #        a way that leaves out the -floyd option. This option | 
| 29 | 
  | 
 #        causes problems with some figures. If you really want | 
| 30 | 
  | 
 #        to use -antialias then you need to turn off the -floyd option. | 
| 31 | 
  | 
 #        To do this either  | 
| 32 | 
  | 
 #        1. edit the pstoimg script that comes with latex2html | 
| 33 | 
  | 
 #        2. rename /usr/bin/ppmquant to /usr/bin/ppmquant.orig and | 
| 34 | 
  | 
 #           create a shell script that calls /usr/bin/ppmquant.orig | 
| 35 | 
  | 
 #           with just the option -256. | 
| 36 | 
  | 
 #           e.g. | 
| 37 | 
  | 
 #           mv /usr/bin/ppmquant /usr/bin/ppmquant.orig | 
| 38 | 
  | 
 #           cat > /usr/bin/ppmquant <<! | 
| 39 | 
  | 
 #           #!/bin/csh -f | 
| 40 | 
  | 
 #           /usr/bin/ppmquant.orig 256 | 
| 41 | 
  | 
 #           ! | 
| 42 | 
  | 
  | 
| 43 | 
  | 
  | 
| 44 | 
 html: | 
 html: | 
| 45 | 
         latex2html -image_type gif -split 5 -show_section_numbers -link 2 -address "<a href=mailto:support@mitgc,.org>support@mitgcm.org</a>" manual | 
         latex2html -image_type gif -split 5 -show_section_numbers -link 2 -address "<a href=mailto:support@mitgcm.org>support@mitgcm.org</a>" -local_icons -noantialias -white manual | 
| 46 | 
  | 
  | 
| 47 | 
  | 
 html2: | 
| 48 | 
  | 
         latex2html -image_type gif -split 5 -show_section_numbers -link 2 -address "<a href=mailto:support@mitgc,.org>support@mitgcm.org</a>" -noantialias -local_icons -white -debug m2 |