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_part2 |
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 Clean |
21 |
make get_figs |
22 |
make all |
23 |
|
24 |
get_figs: |
25 |
\mkdir -p ../figs_ceaice |
26 |
\wget ftp://ecco2.jpl.nasa.gov/data9/articles/ceaice/figs_part2/'*' |
27 |
\gunzip -f *.eps*.gz |
28 |
\mv *.eps* ../figs_ceaice |
29 |
\mv *.png ../figs_ceaice |
30 |
\mv *.fig ../figs_ceaice |
31 |
\mv *.jpg ../figs_ceaice |
32 |
|
33 |
all: |
34 |
\ln -sf figs_ceaice ../figs_ceaice_2009.11 |
35 |
make tex |
36 |
make ps |
37 |
make pdf |
38 |
make ps.gz |
39 |
|
40 |
tex: $(SRC).dvi |
41 |
|
42 |
ps: $(SRC).ps |
43 |
|
44 |
ps.gz: $(SRC).ps |
45 |
gzip -9 -c $(SRC).ps > $(SRC).ps.gz |
46 |
|
47 |
pdf: $(SRC).pdf |
48 |
|
49 |
$(SRC).dvi: *.tex |
50 |
TEXINPUTS=.:::texinputs latex $(LATEXFLAGS) $(SRC) |
51 |
bibtex $(SRC) |
52 |
TEXINPUTS=.:::texinputs latex $(LATEXFLAGS) $(SRC) |
53 |
TEXINPUTS=.:::texinputs latex $(LATEXFLAGS) $(SRC) |
54 |
TEXINPUTS=.:::texinputs latex $(LATEXFLAGS) $(SRC) | tee warnings |
55 |
|
56 |
$(SRC).ps: $(SRC).dvi |
57 |
dvips -Pcmz -Pamz -o $(SRC).ps $(SRC).dvi |
58 |
|
59 |
$(SRC).pdf: $(SRC).tex $(SRC).dvi $(SRC).ps |
60 |
# pdflatex $(LATEXFLAGS) $(SRC) |
61 |
ps2pdf -dMaxSubsetPct=100 -dCompatibilityLevel=1.2 -dSubsetFonts=true -dEmbedAllFonts=true -sPAPERSIZE=a4 $(SRC).ps $(SRC).pdf |
62 |
|
63 |
clean: |
64 |
rm -f $(SRC).{aux,bbl,blg,dvi,log,out,toc} warnings l2h.log *~ |
65 |
Clean: |
66 |
make clean |
67 |
rm -f $(SRC).{ps,pdf,ps.gz} |
68 |
rm -rf $(SRC) |
69 |
rm -f $(SRC).{tz,tgz} mbkup.{tz,tgz} l2h.{tz,tgz} |
70 |
|
71 |
|