| 1 | edhill | 1.18 | #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 | adcroft | 1.16 |  | 
| 5 | edhill | 1.21 | PROTEX_PKGS = \ | 
| 6 |  |  | aim \ | 
| 7 |  |  | aim_compon_interf \ | 
| 8 |  |  | aim_ocn_coupler \ | 
| 9 |  |  | aim_v23 \ | 
| 10 |  |  | autodiff \ | 
| 11 |  |  | bulk_force \ | 
| 12 |  |  | cal \ | 
| 13 |  |  | cd_code \ | 
| 14 |  |  | cfc \ | 
| 15 |  |  | compon_communic \ | 
| 16 |  |  | cost \ | 
| 17 |  |  | ctrl \ | 
| 18 |  |  | debug \ | 
| 19 |  |  | dic \ | 
| 20 |  |  | ecco \ | 
| 21 |  |  | exch2 \ | 
| 22 |  |  | exf \ | 
| 23 |  |  | fizhi \ | 
| 24 |  |  | flt \ | 
| 25 |  |  | gchem \ | 
| 26 |  |  | generic_advdiff \ | 
| 27 |  |  | gmredi \ | 
| 28 |  |  | grdchk \ | 
| 29 |  |  | gridalt \ | 
| 30 |  |  | kpp \ | 
| 31 |  |  | land \ | 
| 32 |  |  | mdsio \ | 
| 33 |  |  | mnc \ | 
| 34 |  |  | mom_fluxform \ | 
| 35 |  |  | mom_vecinv \ | 
| 36 |  |  | monitor \ | 
| 37 |  |  | obcs \ | 
| 38 |  |  | ocn_compon_interf \ | 
| 39 |  |  | ptracers \ | 
| 40 |  |  | rw \ | 
| 41 |  |  | sbo \ | 
| 42 |  |  | seaice \ | 
| 43 |  |  | shap_filt \ | 
| 44 |  |  | thsice \ | 
| 45 |  |  | timeave \ | 
| 46 |  |  | zonal_filt | 
| 47 |  |  |  | 
| 48 | adcroft | 1.11 | L2H = -image_type png -split 5 -show_section_numbers -link 2 \ | 
| 49 | edhill | 1.18 | -address "<a href=mailto:support@mitgcm.org>mitgcm-support@dev.mitgcm.org</a>" \ | 
| 50 | adcroft | 1.11 | -local_icons -noantialias -notransparent -white | 
| 51 |  |  |  | 
| 52 | cnh | 1.5 | default: | 
| 53 |  |  | @echo "Targets" | 
| 54 | adcroft | 1.11 | @echo " make all  - everything in order" | 
| 55 | cnh | 1.5 | @echo " make tex  - tex and bibliograohy" | 
| 56 |  |  | @echo " make ps   - postscript form of manual" | 
| 57 |  |  | @echo " make pdf  - pdf form of manual" | 
| 58 | adcroft | 1.11 | @echo " make l2h  - latex2html of manual" | 
| 59 |  |  | @echo " make html - hypertext form of manual with substitutions" | 
| 60 |  |  |  | 
| 61 | adcroft | 1.2 | all: | 
| 62 | cnh | 1.1 | make tex | 
| 63 | adcroft | 1.11 | make ps | 
| 64 |  |  | make pdf | 
| 65 | gcmpack | 1.15 | make ps.gz | 
| 66 | adcroft | 1.11 | make html | 
| 67 | cnh | 1.1 |  | 
| 68 | edhill | 1.21 | pt_files: | 
| 69 |  |  | ./run_protex $(PROTEX_PKGS) | 
| 70 |  |  |  | 
| 71 | adcroft | 1.16 | tex: manual.dvi | 
| 72 | adcroft | 1.11 |  | 
| 73 | adcroft | 1.2 | ps: manual.ps | 
| 74 | gcmpack | 1.15 |  | 
| 75 |  |  | ps.gz: manual.ps | 
| 76 |  |  | gzip -9 -c manual.ps > manual.ps.gz | 
| 77 | adcroft | 1.11 |  | 
| 78 | adcroft | 1.2 | pdf: manual.pdf | 
| 79 |  |  |  | 
| 80 | edhill | 1.19 | #eh3 WARNING: due to the make dependencies, using the following rule will | 
| 81 |  |  | #eh3   *always* result in running the "manual.dvi" and "l2h.tgz" rules | 
| 82 |  |  | #eh3   *TWICE* due to the "*/*.ps" entry in the dependency list! | 
| 83 |  |  | #eh3 html: | 
| 84 |  |  | #eh3    make l2h | 
| 85 |  |  | #eh3    make subfigs | 
| 86 | adcroft | 1.16 | html: | 
| 87 |  |  | make l2h | 
| 88 | edhill | 1.19 | cd manual; ../tools/make_mail_subjects.sh | 
| 89 |  |  | cd manual; ../tools/figsub.sh | 
| 90 |  |  | cd manual; ../tools/fix_docref_target.sh | 
| 91 | afe | 1.22 | cd manual; ../tools/genredir.sh; mv mapping.txt .. | 
| 92 | edhill | 1.19 | tar -czf manual.tgz manual | 
| 93 | adcroft | 1.16 |  | 
| 94 |  |  | l2h: l2h.tgz | 
| 95 |  |  |  | 
| 96 |  |  | subfigs: manual.tgz | 
| 97 |  |  |  | 
| 98 | jmc | 1.20 | manual.dvi: *.tex */*.tex */*/*/*.tex */*.ps */*.eps */*/*/*.eps manual_references.bib | 
| 99 | edhill | 1.21 | make pt_files | 
| 100 | adcroft | 1.16 | TEXINPUTS=.:::texinputs latex manual | 
| 101 |  |  | bibtex manual | 
| 102 |  |  | TEXINPUTS=.:::texinputs latex manual | 
| 103 |  |  | TEXINPUTS=.:::texinputs latex manual | tee warnings | 
| 104 |  |  |  | 
| 105 | adcroft | 1.2 | manual.ps: manual.dvi | 
| 106 | adcroft | 1.17 | dvips -Pcmz -Pamz -o manual.ps manual.dvi | 
| 107 | adcroft | 1.2 |  | 
| 108 |  |  | manual.pdf: manual.ps | 
| 109 |  |  | ps2pdf -dMaxSubsetPct=100 -dCompatibilityLevel=1.2 -dSubsetFonts=true -dEmbedAllFonts=true manual.ps manual.pdf | 
| 110 | cnh | 1.1 |  | 
| 111 | adcroft | 1.11 | clean: | 
| 112 | adcroft | 1.16 | rm -f manual.{aux,bbl,blg,dvi,log,out,toc} warnings l2h.log | 
| 113 | adcroft | 1.11 | Clean: | 
| 114 |  |  | make clean | 
| 115 | adcroft | 1.16 | rm -f manual.{ps,pdf,ps.gz} | 
| 116 | adcroft | 1.11 | rm -rf manual | 
| 117 | gcmpack | 1.14 | rm -f manual.{tz,tgz} mbkup.{tz,tgz} l2h.{tz,tgz} | 
| 118 | adcroft | 1.11 |  | 
| 119 | cnh | 1.6 | # Note - the noantialias option here does not affect the gif images | 
| 120 |  |  | #        that are generated. However, it does make ppmquant to run in | 
| 121 |  |  | #        a way that leaves out the -floyd option. This option | 
| 122 |  |  | #        causes problems with some figures. If you really want | 
| 123 |  |  | #        to use -antialias then you need to turn off the -floyd option. | 
| 124 |  |  | #        To do this either | 
| 125 |  |  | #        1. edit the pstoimg script that comes with latex2html | 
| 126 |  |  | #        2. rename /usr/bin/ppmquant to /usr/bin/ppmquant.orig and | 
| 127 |  |  | #           create a shell script that calls /usr/bin/ppmquant.orig | 
| 128 |  |  | #           with just the option -256. | 
| 129 |  |  | #           e.g. | 
| 130 |  |  | #           mv /usr/bin/ppmquant /usr/bin/ppmquant.orig | 
| 131 |  |  | #           cat > /usr/bin/ppmquant <<! | 
| 132 |  |  | #           #!/bin/csh -f | 
| 133 |  |  | #           /usr/bin/ppmquant.orig 256 | 
| 134 |  |  | #           ! | 
| 135 |  |  |  | 
| 136 | adcroft | 1.16 | debugl2h: | 
| 137 |  |  | /usr/bin/latex2html -debug -nodiscard -ldump $(L2H) manual | 
| 138 | adcroft | 1.12 |  | 
| 139 | adcroft | 1.16 | l2h.tgz: manual.dvi | 
| 140 |  |  | /usr/bin/latex2html $(L2H) manual | tee l2h.log | 
| 141 | gcmpack | 1.14 | tar -czf l2h.tgz manual | 
| 142 | adcroft | 1.11 |  | 
| 143 | adcroft | 1.16 | manual.tgz: l2h.tgz | 
| 144 | cnh | 1.9 | cd manual; ../tools/make_mail_subjects.sh | 
| 145 |  |  | cd manual; ../tools/figsub.sh | 
| 146 |  |  | cd manual; ../tools/fix_docref_target.sh | 
| 147 | adcroft | 1.13 | tar -czf manual.tgz manual |