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 |
SRC=ceaice |
6 |
LATEXFLAGS=-interaction=batchmode |
7 |
|
8 |
default: |
9 |
@echo "Targets" |
10 |
@echo " make All - everything in order" |
11 |
@echo " make get_figs - get figures" |
12 |
@echo " make all - everything except get_figs in order" |
13 |
@echo " make tex - tex and bibliograohy" |
14 |
@echo " make ps - postscript form of manual" |
15 |
@echo " make pdf - pdf form of $(SRC)" |
16 |
@echo " make clean - remove intermediary files: aux, dvi, etc." |
17 |
@echo " make Clean - remove all files: ps, pdf, etc." |
18 |
|
19 |
All: |
20 |
make get_figs |
21 |
make all |
22 |
|
23 |
get_figs: |
24 |
\mkdir -p figs |
25 |
\wget ftp://ecco2.jpl.nasa.gov/data9/articles/ceaice/figs/'*' |
26 |
\gunzip *.eps*.gz |
27 |
\mv *.eps* figs |
28 |
\mv *.png figs |
29 |
|
30 |
all: |
31 |
make tex |
32 |
make ps |
33 |
make pdf |
34 |
make ps.gz |
35 |
|
36 |
tex: $(SRC).dvi |
37 |
|
38 |
ps: $(SRC).ps |
39 |
|
40 |
ps.gz: $(SRC).ps |
41 |
gzip -9 -c $(SRC).ps > $(SRC).ps.gz |
42 |
|
43 |
pdf: $(SRC).pdf |
44 |
|
45 |
$(SRC).dvi: *.tex |
46 |
TEXINPUTS=.:::texinputs latex $(LATEXFLAGS) $(SRC) |
47 |
bibtex $(SRC) |
48 |
TEXINPUTS=.:::texinputs latex $(LATEXFLAGS) $(SRC) |
49 |
TEXINPUTS=.:::texinputs latex $(LATEXFLAGS) $(SRC) |
50 |
TEXINPUTS=.:::texinputs latex $(LATEXFLAGS) $(SRC) | tee warnings |
51 |
|
52 |
$(SRC).ps: $(SRC).dvi |
53 |
dvips -Pcmz -Pamz -o $(SRC).ps $(SRC).dvi |
54 |
|
55 |
$(SRC).pdf: $(SRC).tex $(SRC).dvi $(SRC).ps |
56 |
# pdflatex $(LATEXFLAGS) $(SRC) |
57 |
ps2pdf -dMaxSubsetPct=100 -dCompatibilityLevel=1.2 -dSubsetFonts=true -dEmbedAllFonts=true -sPAPERSIZE=a4 $(SRC).ps $(SRC).pdf |
58 |
|
59 |
clean: |
60 |
rm -f $(SRC).{aux,bbl,blg,dvi,log,out,toc} warnings l2h.log *~ |
61 |
Clean: |
62 |
make clean |
63 |
rm -f $(SRC).{ps,pdf,ps.gz} |
64 |
rm -rf $(SRC) |
65 |
rm -f $(SRC).{tz,tgz} mbkup.{tz,tgz} l2h.{tz,tgz} |
66 |
|
67 |
|