| 1 |
adcroft |
1.11 |
L2H = -image_type png -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 |
cnh |
1.5 |
default: |
| 6 |
|
|
@echo "Targets" |
| 7 |
adcroft |
1.11 |
@echo " make all - everything in order" |
| 8 |
cnh |
1.5 |
@echo " make tex - tex and bibliograohy" |
| 9 |
|
|
@echo " make ps - postscript form of manual" |
| 10 |
|
|
@echo " make pdf - pdf form of manual" |
| 11 |
adcroft |
1.11 |
@echo " make l2h - latex2html of manual" |
| 12 |
|
|
@echo " make html - hypertext form of manual with substitutions" |
| 13 |
|
|
|
| 14 |
adcroft |
1.2 |
all: |
| 15 |
cnh |
1.1 |
make tex |
| 16 |
adcroft |
1.11 |
make ps |
| 17 |
|
|
make pdf |
| 18 |
|
|
make html |
| 19 |
cnh |
1.1 |
|
| 20 |
|
|
tex: |
| 21 |
cnh |
1.8 |
TEXINPUTS=.:::texinputs latex manual |
| 22 |
adcroft |
1.2 |
bibtex manual |
| 23 |
cnh |
1.8 |
TEXINPUTS=.:::texinputs latex manual |
| 24 |
|
|
TEXINPUTS=.:::texinputs latex manual | tee warnings |
| 25 |
adcroft |
1.11 |
|
| 26 |
adcroft |
1.2 |
ps: manual.ps |
| 27 |
adcroft |
1.11 |
|
| 28 |
adcroft |
1.2 |
pdf: manual.pdf |
| 29 |
|
|
|
| 30 |
|
|
manual.ps: manual.dvi |
| 31 |
adcroft |
1.3 |
dvips -Pcmz -Pamz -Ppdf -o manual.ps manual.dvi |
| 32 |
adcroft |
1.2 |
|
| 33 |
|
|
manual.pdf: manual.ps |
| 34 |
|
|
ps2pdf -dMaxSubsetPct=100 -dCompatibilityLevel=1.2 -dSubsetFonts=true -dEmbedAllFonts=true manual.ps manual.pdf |
| 35 |
cnh |
1.1 |
|
| 36 |
adcroft |
1.11 |
clean: |
| 37 |
|
|
rm -f manual.{aux,bbl,blg,dvi,log,out,toc} |
| 38 |
|
|
Clean: |
| 39 |
|
|
make clean |
| 40 |
|
|
rm -f manual.{ps,pdf} |
| 41 |
|
|
rm -rf manual |
| 42 |
|
|
rm -f manual.tz mbkup.tz |
| 43 |
|
|
|
| 44 |
cnh |
1.6 |
# Note - the noantialias option here does not affect the gif images |
| 45 |
|
|
# that are generated. However, it does make ppmquant to run in |
| 46 |
|
|
# a way that leaves out the -floyd option. This option |
| 47 |
|
|
# causes problems with some figures. If you really want |
| 48 |
|
|
# to use -antialias then you need to turn off the -floyd option. |
| 49 |
|
|
# To do this either |
| 50 |
|
|
# 1. edit the pstoimg script that comes with latex2html |
| 51 |
|
|
# 2. rename /usr/bin/ppmquant to /usr/bin/ppmquant.orig and |
| 52 |
|
|
# create a shell script that calls /usr/bin/ppmquant.orig |
| 53 |
|
|
# with just the option -256. |
| 54 |
|
|
# e.g. |
| 55 |
|
|
# mv /usr/bin/ppmquant /usr/bin/ppmquant.orig |
| 56 |
|
|
# cat > /usr/bin/ppmquant <<! |
| 57 |
|
|
# #!/bin/csh -f |
| 58 |
|
|
# /usr/bin/ppmquant.orig 256 |
| 59 |
|
|
# ! |
| 60 |
|
|
|
| 61 |
adcroft |
1.12 |
html: |
| 62 |
|
|
make l2h |
| 63 |
|
|
make subfigs |
| 64 |
|
|
|
| 65 |
adcroft |
1.11 |
l2h: |
| 66 |
|
|
latex2html $(L2H) manual |
| 67 |
|
|
|
| 68 |
|
|
debugl2h: |
| 69 |
|
|
latex2html -debug -nodiscard -ldump $(L2H) manual |
| 70 |
cnh |
1.6 |
|
| 71 |
adcroft |
1.12 |
subfigs: |
| 72 |
cnh |
1.9 |
cd manual; tar -czf ../mbkup.tz . |
| 73 |
|
|
cd manual; ../tools/make_mail_subjects.sh |
| 74 |
|
|
cd manual; ../tools/figsub.sh |
| 75 |
|
|
cd manual; ../tools/fix_docref_target.sh |
| 76 |
|
|
cd manual; tar -czf ../manual.tz . |