| 1 | edhill | 1.27 | # | 
| 2 | jmc | 1.31 | #  $Header: /u/gcmpack/manual/Makefile,v 1.30 2010/08/28 22:57:11 jmc Exp $ | 
| 3 | edhill | 1.27 | #  $Name:  $ | 
| 4 |  |  | # | 
| 5 |  |  |  | 
| 6 |  |  | # | 
| 7 | edhill | 1.18 | #L2H = -image_type gif -split 5 -show_section_numbers -link 2 \ | 
| 8 |  |  | #      -address "<a href=mailto:support@mitgcm.org>support@mitgcm.org</a>" \ | 
| 9 |  |  | #      -local_icons -noantialias -notransparent -white | 
| 10 | adcroft | 1.16 |  | 
| 11 | edhill | 1.21 |  | 
| 12 | adcroft | 1.11 | L2H = -image_type png -split 5 -show_section_numbers -link 2 \ | 
| 13 | edhill | 1.28 | -address "<a href=mailto:support@mitgcm.org>mitgcm-support@mitgcm.org</a>" \ | 
| 14 | adcroft | 1.11 | -local_icons -noantialias -notransparent -white | 
| 15 |  |  |  | 
| 16 | cnh | 1.5 | default: | 
| 17 |  |  | @echo "Targets" | 
| 18 | adcroft | 1.11 | @echo " make all  - everything in order" | 
| 19 | cnh | 1.5 | @echo " make tex  - tex and bibliograohy" | 
| 20 |  |  | @echo " make ps   - postscript form of manual" | 
| 21 |  |  | @echo " make pdf  - pdf form of manual" | 
| 22 | adcroft | 1.11 | @echo " make l2h  - latex2html of manual" | 
| 23 |  |  | @echo " make html - hypertext form of manual with substitutions" | 
| 24 |  |  |  | 
| 25 | adcroft | 1.2 | all: | 
| 26 | cnh | 1.1 | make tex | 
| 27 | adcroft | 1.11 | make ps | 
| 28 |  |  | make pdf | 
| 29 | gcmpack | 1.15 | make ps.gz | 
| 30 | adcroft | 1.11 | make html | 
| 31 | edhill | 1.21 |  | 
| 32 | adcroft | 1.16 | tex: manual.dvi | 
| 33 | adcroft | 1.11 |  | 
| 34 | adcroft | 1.2 | ps: manual.ps | 
| 35 | gcmpack | 1.15 |  | 
| 36 |  |  | ps.gz: manual.ps | 
| 37 |  |  | gzip -9 -c manual.ps > manual.ps.gz | 
| 38 | adcroft | 1.11 |  | 
| 39 | adcroft | 1.2 | pdf: manual.pdf | 
| 40 |  |  |  | 
| 41 | edhill | 1.19 | #eh3 WARNING: due to the make dependencies, using the following rule will | 
| 42 |  |  | #eh3   *always* result in running the "manual.dvi" and "l2h.tgz" rules | 
| 43 |  |  | #eh3   *TWICE* due to the "*/*.ps" entry in the dependency list! | 
| 44 |  |  | #eh3 html: | 
| 45 |  |  | #eh3    make l2h | 
| 46 |  |  | #eh3    make subfigs | 
| 47 | adcroft | 1.16 | html: | 
| 48 |  |  | make l2h | 
| 49 | edhill | 1.19 | cd manual; ../tools/make_mail_subjects.sh | 
| 50 |  |  | cd manual; ../tools/figsub.sh | 
| 51 |  |  | cd manual; ../tools/fix_docref_target.sh | 
| 52 | afe | 1.24 | cd manual; ../tools/genredir.sh | 
| 53 | edhill | 1.19 | tar -czf manual.tgz manual | 
| 54 | adcroft | 1.16 |  | 
| 55 |  |  | l2h: l2h.tgz | 
| 56 |  |  |  | 
| 57 |  |  | subfigs: manual.tgz | 
| 58 |  |  |  | 
| 59 | jmc | 1.30 | manual.dvi: *.tex */*/*.tex */*/*.templ */*/*.ps */*/*.eps manual_references.bib | 
| 60 | jmc | 1.31 | ( cd s_examples/global_oce_latlon/  &&  make ) | 
| 61 | jmc | 1.29 | ( cd s_examples/held_suarez_cs/  &&  make ) | 
| 62 | adcroft | 1.16 | TEXINPUTS=.:::texinputs latex manual | 
| 63 |  |  | bibtex manual | 
| 64 |  |  | TEXINPUTS=.:::texinputs latex manual | 
| 65 | jmc | 1.30 | TEXINPUTS=.:::texinputs latex manual | 
| 66 |  |  | tools/latex_warning.sh manual.log warnings | 
| 67 | adcroft | 1.16 |  | 
| 68 | adcroft | 1.2 | manual.ps: manual.dvi | 
| 69 | adcroft | 1.17 | dvips -Pcmz -Pamz -o manual.ps manual.dvi | 
| 70 | adcroft | 1.2 |  | 
| 71 |  |  | manual.pdf: manual.ps | 
| 72 |  |  | ps2pdf -dMaxSubsetPct=100 -dCompatibilityLevel=1.2 -dSubsetFonts=true -dEmbedAllFonts=true manual.ps manual.pdf | 
| 73 | cnh | 1.1 |  | 
| 74 | adcroft | 1.11 | clean: | 
| 75 | adcroft | 1.16 | rm -f manual.{aux,bbl,blg,dvi,log,out,toc} warnings l2h.log | 
| 76 | edhill | 1.27 |  | 
| 77 | adcroft | 1.11 | Clean: | 
| 78 |  |  | make clean | 
| 79 | jmc | 1.31 | ( cd s_examples/global_oce_latlon/  &&  make Clean ) | 
| 80 | jmc | 1.29 | ( cd s_examples/held_suarez_cs/  &&  make Clean ) | 
| 81 | adcroft | 1.16 | rm -f manual.{ps,pdf,ps.gz} | 
| 82 | adcroft | 1.11 | rm -rf manual | 
| 83 | gcmpack | 1.14 | rm -f manual.{tz,tgz} mbkup.{tz,tgz} l2h.{tz,tgz} | 
| 84 | adcroft | 1.11 |  | 
| 85 | cnh | 1.6 | # Note - the noantialias option here does not affect the gif images | 
| 86 |  |  | #        that are generated. However, it does make ppmquant to run in | 
| 87 |  |  | #        a way that leaves out the -floyd option. This option | 
| 88 |  |  | #        causes problems with some figures. If you really want | 
| 89 |  |  | #        to use -antialias then you need to turn off the -floyd option. | 
| 90 |  |  | #        To do this either | 
| 91 |  |  | #        1. edit the pstoimg script that comes with latex2html | 
| 92 |  |  | #        2. rename /usr/bin/ppmquant to /usr/bin/ppmquant.orig and | 
| 93 |  |  | #           create a shell script that calls /usr/bin/ppmquant.orig | 
| 94 |  |  | #           with just the option -256. | 
| 95 |  |  | #           e.g. | 
| 96 |  |  | #           mv /usr/bin/ppmquant /usr/bin/ppmquant.orig | 
| 97 |  |  | #           cat > /usr/bin/ppmquant <<! | 
| 98 |  |  | #           #!/bin/csh -f | 
| 99 |  |  | #           /usr/bin/ppmquant.orig 256 | 
| 100 |  |  | #           ! | 
| 101 |  |  |  | 
| 102 | adcroft | 1.16 | debugl2h: | 
| 103 |  |  | /usr/bin/latex2html -debug -nodiscard -ldump $(L2H) manual | 
| 104 | adcroft | 1.12 |  | 
| 105 | adcroft | 1.16 | l2h.tgz: manual.dvi | 
| 106 |  |  | /usr/bin/latex2html $(L2H) manual | tee l2h.log | 
| 107 | gcmpack | 1.14 | tar -czf l2h.tgz manual | 
| 108 | adcroft | 1.11 |  | 
| 109 | adcroft | 1.16 | manual.tgz: l2h.tgz | 
| 110 | cnh | 1.9 | cd manual; ../tools/make_mail_subjects.sh | 
| 111 |  |  | cd manual; ../tools/figsub.sh | 
| 112 |  |  | cd manual; ../tools/fix_docref_target.sh | 
| 113 | adcroft | 1.13 | tar -czf manual.tgz manual |