#L2H = -image_type gif -split 5 -show_section_numbers -link 2 \ # -address "support@mitgcm.org" \ # -local_icons -noantialias -notransparent -white SRC=ceaice LATEXFLAGS=-interaction=batchmode default: @echo "Targets" @echo " make All - everything in order" @echo " make get_figs - get figures" @echo " make all - everything except get_figs in order" @echo " make tex - tex and bibliograohy" @echo " make ps - postscript form of manual" @echo " make pdf - pdf form of $(SRC)" @echo " make clean - remove intermediary files: aux, dvi, etc." @echo " make Clean - remove all files: ps, pdf, etc." All: make get_figs make all get_figs: \mkdir -p figs \wget ftp://ecco2.jpl.nasa.gov/data9/articles/ceaice/figs/'*' \gunzip *.eps*.gz \mv *.eps* figs \mv *.png figs all: make tex make ps make pdf make ps.gz tex: $(SRC).dvi ps: $(SRC).ps ps.gz: $(SRC).ps gzip -9 -c $(SRC).ps > $(SRC).ps.gz pdf: $(SRC).pdf $(SRC).dvi: *.tex TEXINPUTS=.:::texinputs latex $(LATEXFLAGS) $(SRC) bibtex $(SRC) TEXINPUTS=.:::texinputs latex $(LATEXFLAGS) $(SRC) TEXINPUTS=.:::texinputs latex $(LATEXFLAGS) $(SRC) TEXINPUTS=.:::texinputs latex $(LATEXFLAGS) $(SRC) | tee warnings $(SRC).ps: $(SRC).dvi dvips -Pcmz -Pamz -o $(SRC).ps $(SRC).dvi $(SRC).pdf: $(SRC).tex $(SRC).dvi $(SRC).ps # pdflatex $(LATEXFLAGS) $(SRC) ps2pdf -dMaxSubsetPct=100 -dCompatibilityLevel=1.2 -dSubsetFonts=true -dEmbedAllFonts=true -sPAPERSIZE=a4 $(SRC).ps $(SRC).pdf clean: rm -f $(SRC).{aux,bbl,blg,dvi,log,out,toc} warnings l2h.log *~ Clean: make clean rm -f $(SRC).{ps,pdf,ps.gz} rm -rf $(SRC) rm -f $(SRC).{tz,tgz} mbkup.{tz,tgz} l2h.{tz,tgz}