| 1 | 
  | 
 #L2H = -image_type gif -split 5 -show_section_numbers -link 2 \ | 
| 2 | 
  | 
 #      -address "<a href=mailto:support@mitgcm.org>support@mitgcm.org</a>" \ | 
| 3 | 
  | 
 #      -local_icons -noantialias -notransparent -white | 
| 4 | 
  | 
  | 
| 5 | 
  | 
 L2H = -image_type png -split 5 -show_section_numbers -link 2 \ | 
| 6 | 
  | 
       -address "<a href=mailto:support@mitgcm.org>mitgcm-support@dev.mitgcm.org</a>" \ | 
| 7 | 
  | 
       -local_icons -noantialias -notransparent -white | 
| 8 | 
  | 
  | 
| 9 | 
 default: | 
 default: | 
| 10 | 
         @echo "Targets" | 
         @echo "Targets" | 
| 11 | 
         @echo " make all  - just the tex " | 
         @echo " make all  - everything in order" | 
| 12 | 
         @echo " make tex  - tex and bibliograohy" | 
         @echo " make tex  - tex and bibliograohy" | 
| 13 | 
         @echo " make ps   - postscript form of manual" | 
         @echo " make ps   - postscript form of manual" | 
| 14 | 
         @echo " make pdf  - pdf form of manual" | 
         @echo " make pdf  - pdf form of manual" | 
| 15 | 
         @echo " make html - hypertext form of manual" | 
         @echo " make l2h  - latex2html of manual" | 
| 16 | 
  | 
         @echo " make html - hypertext form of manual with substitutions" | 
| 17 | 
  | 
  | 
| 18 | 
 all: | 
 all: | 
| 19 | 
         make tex | 
         make tex | 
| 20 | 
  | 
         make ps | 
| 21 | 
  | 
         make pdf | 
| 22 | 
  | 
         make ps.gz | 
| 23 | 
  | 
         make html | 
| 24 | 
  | 
  | 
| 25 | 
  | 
 tex: manual.dvi | 
| 26 | 
  | 
  | 
| 27 | 
  | 
 ps: manual.ps | 
| 28 | 
  | 
  | 
| 29 | 
  | 
 ps.gz: manual.ps | 
| 30 | 
  | 
         gzip -9 -c manual.ps > manual.ps.gz | 
| 31 | 
  | 
  | 
| 32 | 
 tex: | 
 pdf: manual.pdf | 
| 33 | 
  | 
  | 
| 34 | 
  | 
 #eh3 WARNING: due to the make dependencies, using the following rule will  | 
| 35 | 
  | 
 #eh3   *always* result in running the "manual.dvi" and "l2h.tgz" rules | 
| 36 | 
  | 
 #eh3   *TWICE* due to the "*/*.ps" entry in the dependency list! | 
| 37 | 
  | 
 #eh3 html: | 
| 38 | 
  | 
 #eh3    make l2h | 
| 39 | 
  | 
 #eh3    make subfigs | 
| 40 | 
  | 
 html: | 
| 41 | 
  | 
         make l2h | 
| 42 | 
  | 
         cd manual; ../tools/make_mail_subjects.sh | 
| 43 | 
  | 
         cd manual; ../tools/figsub.sh | 
| 44 | 
  | 
         cd manual; ../tools/fix_docref_target.sh | 
| 45 | 
  | 
         tar -czf manual.tgz manual | 
| 46 | 
  | 
  | 
| 47 | 
  | 
 l2h: l2h.tgz | 
| 48 | 
  | 
  | 
| 49 | 
  | 
 subfigs: manual.tgz | 
| 50 | 
  | 
  | 
| 51 | 
  | 
 manual.dvi: *.tex */*.tex */*/*/*.tex */*.ps */*.eps */*/*/*.eps | 
| 52 | 
         TEXINPUTS=.:::texinputs latex manual | 
         TEXINPUTS=.:::texinputs latex manual | 
| 53 | 
         bibtex manual | 
         bibtex manual | 
| 54 | 
         TEXINPUTS=.:::texinputs latex manual | 
         TEXINPUTS=.:::texinputs latex manual | 
| 55 | 
         TEXINPUTS=.:::texinputs latex manual | tee warnings | 
         TEXINPUTS=.:::texinputs latex manual | tee warnings | 
 | 
 #       TEXINPUTS=.:::texinputs latex manual | 
  | 
 | 
 ps: manual.ps | 
  | 
 | 
 pdf: manual.pdf | 
  | 
| 56 | 
  | 
  | 
| 57 | 
 manual.ps: manual.dvi | 
 manual.ps: manual.dvi | 
| 58 | 
         dvips -Pcmz -Pamz -Ppdf -o manual.ps manual.dvi | 
         dvips -Pcmz -Pamz -o manual.ps manual.dvi | 
| 59 | 
  | 
  | 
| 60 | 
 manual.pdf: manual.ps | 
 manual.pdf: manual.ps | 
| 61 | 
         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 | 
| 62 | 
  | 
  | 
| 63 | 
  | 
 clean:  | 
| 64 | 
  | 
         rm -f manual.{aux,bbl,blg,dvi,log,out,toc} warnings l2h.log | 
| 65 | 
  | 
 Clean: | 
| 66 | 
  | 
         make clean | 
| 67 | 
  | 
         rm -f manual.{ps,pdf,ps.gz} | 
| 68 | 
  | 
         rm -rf manual | 
| 69 | 
  | 
         rm -f manual.{tz,tgz} mbkup.{tz,tgz} l2h.{tz,tgz} | 
| 70 | 
  | 
  | 
| 71 | 
 # Note - the noantialias option here does not affect the gif images | 
 # Note - the noantialias option here does not affect the gif images | 
| 72 | 
 #        that are generated. However, it does make ppmquant to run in | 
 #        that are generated. However, it does make ppmquant to run in | 
| 73 | 
 #        a way that leaves out the -floyd option. This option | 
 #        a way that leaves out the -floyd option. This option | 
| 85 | 
 #           /usr/bin/ppmquant.orig 256 | 
 #           /usr/bin/ppmquant.orig 256 | 
| 86 | 
 #           ! | 
 #           ! | 
| 87 | 
  | 
  | 
| 88 | 
  | 
 debugl2h: | 
| 89 | 
  | 
         /usr/bin/latex2html -debug -nodiscard -ldump $(L2H) manual | 
| 90 | 
  | 
  | 
| 91 | 
 html: | 
 l2h.tgz: manual.dvi | 
| 92 | 
         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 | 
         /usr/bin/latex2html $(L2H) manual | tee l2h.log | 
| 93 | 
         cd manual; tar -czf ../mbkup.tz . | 
         tar -czf l2h.tgz manual | 
 | 
         cd manual; ../tools/make_mail_subjects.sh | 
  | 
 | 
         cd manual; ../tools/figsub.sh | 
  | 
 | 
         cd manual; ../tools/fix_docref_target.sh | 
  | 
 | 
         cd manual; tar -czf ../manual.tz . | 
  | 
 | 
 #       cd /homes/cnh/SEALION_RELEASE/website/online_documents/manual; tar -xzf /homes/cnh/SEALION_RELEASE/manual/HEAD/manual.tz | 
  | 
 | 
 #       tar -czf ol.tz on-line-figs | 
  | 
| 94 | 
  | 
  | 
| 95 | 
 html2: | 
 manual.tgz: l2h.tgz | 
 | 
         cd manual; tar -xzf ../mbkup.tz . | 
  | 
| 96 | 
         cd manual; ../tools/make_mail_subjects.sh | 
         cd manual; ../tools/make_mail_subjects.sh | 
| 97 | 
         cd manual; ../tools/figsub.sh | 
         cd manual; ../tools/figsub.sh | 
| 98 | 
         cd manual; ../tools/fix_docref_target.sh | 
         cd manual; ../tools/fix_docref_target.sh | 
| 99 | 
         cd manual; tar -czf ../manual.tz . | 
         tar -czf manual.tgz manual | 
 | 
         cd /homes/cnh/SEALION_RELEASE/website/online_documents/manual; tar -xzf /homes/cnh/SEALION_RELEASE/manual/HEAD/manual.tz | 
  | 
 | 
 #       tar -czf ol.tz on-line-figs | 
  | 
 | 
  | 
  |