/[MITgcm]/manual/Makefile
ViewVC logotype

Contents of /manual/Makefile

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.12 - (show annotations) (download)
Thu Apr 18 18:48:27 2002 UTC (22 years ago) by adcroft
Branch: MAIN
Changes since 1.11: +5 -2 lines
Split the html generation into two phases. l2h is robust. html not quite.

1 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 default:
6 @echo "Targets"
7 @echo " make all - everything in order"
8 @echo " make tex - tex and bibliograohy"
9 @echo " make ps - postscript form of manual"
10 @echo " make pdf - pdf form of manual"
11 @echo " make l2h - latex2html of manual"
12 @echo " make html - hypertext form of manual with substitutions"
13
14 all:
15 make tex
16 make ps
17 make pdf
18 make html
19
20 tex:
21 TEXINPUTS=.:::texinputs latex manual
22 bibtex manual
23 TEXINPUTS=.:::texinputs latex manual
24 TEXINPUTS=.:::texinputs latex manual | tee warnings
25
26 ps: manual.ps
27
28 pdf: manual.pdf
29
30 manual.ps: manual.dvi
31 dvips -Pcmz -Pamz -Ppdf -o manual.ps manual.dvi
32
33 manual.pdf: manual.ps
34 ps2pdf -dMaxSubsetPct=100 -dCompatibilityLevel=1.2 -dSubsetFonts=true -dEmbedAllFonts=true manual.ps manual.pdf
35
36 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 # 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 html:
62 make l2h
63 make subfigs
64
65 l2h:
66 latex2html $(L2H) manual
67
68 debugl2h:
69 latex2html -debug -nodiscard -ldump $(L2H) manual
70
71 subfigs:
72 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 .

  ViewVC Help
Powered by ViewVC 1.1.22