#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 tex - tex and bibliograohy" @echo " make ps - postscript form of manual" @echo " make pdf - pdf form of $(SRC)" 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) | 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}