1 |
mlosch |
1.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 tex - tex and bibliograohy" |
12 |
|
|
@echo " make ps - postscript form of manual" |
13 |
|
|
@echo " make pdf - pdf form of $(SRC)" |
14 |
|
|
|
15 |
|
|
all: |
16 |
|
|
make tex |
17 |
|
|
make ps |
18 |
|
|
make pdf |
19 |
|
|
make ps.gz |
20 |
|
|
|
21 |
|
|
tex: $(SRC).dvi |
22 |
|
|
|
23 |
|
|
ps: $(SRC).ps |
24 |
|
|
|
25 |
|
|
ps.gz: $(SRC).ps |
26 |
|
|
gzip -9 -c $(SRC).ps > $(SRC).ps.gz |
27 |
|
|
|
28 |
|
|
pdf: $(SRC).pdf |
29 |
|
|
|
30 |
|
|
$(SRC).dvi: *.tex |
31 |
|
|
TEXINPUTS=.:::texinputs latex $(LATEXFLAGS) $(SRC) |
32 |
|
|
# bibtex $(SRC) |
33 |
|
|
TEXINPUTS=.:::texinputs latex $(LATEXFLAGS) $(SRC) |
34 |
|
|
TEXINPUTS=.:::texinputs latex $(LATEXFLAGS) $(SRC) | tee warnings |
35 |
|
|
|
36 |
|
|
$(SRC).ps: $(SRC).dvi |
37 |
|
|
dvips -Pcmz -Pamz -o $(SRC).ps $(SRC).dvi |
38 |
|
|
|
39 |
|
|
$(SRC).pdf: $(SRC).tex $(SRC).dvi $(SRC).ps |
40 |
|
|
# pdflatex $(LATEXFLAGS) $(SRC) |
41 |
|
|
ps2pdf -dMaxSubsetPct=100 -dCompatibilityLevel=1.2 -dSubsetFonts=true -dEmbedAllFonts=true -sPAPERSIZE=a4 $(SRC).ps $(SRC).pdf |
42 |
|
|
|
43 |
|
|
clean: |
44 |
|
|
rm -f $(SRC).{aux,bbl,blg,dvi,log,out,toc} warnings l2h.log |
45 |
|
|
Clean: |
46 |
|
|
make clean |
47 |
|
|
rm -f $(SRC).{ps,pdf,ps.gz} |
48 |
|
|
rm -rf $(SRC) |
49 |
|
|
rm -f $(SRC).{tz,tgz} mbkup.{tz,tgz} l2h.{tz,tgz} |
50 |
|
|
|
51 |
|
|
|