--- MITgcm_contrib/articles/ceaice/Makefile 2008/01/18 07:53:13 1.1 +++ MITgcm_contrib/articles/ceaice/Makefile 2008/04/29 14:00:51 1.4 @@ -7,10 +7,25 @@ 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)" + @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 @@ -29,7 +44,8 @@ $(SRC).dvi: *.tex TEXINPUTS=.:::texinputs latex $(LATEXFLAGS) $(SRC) -# bibtex $(SRC) + bibtex $(SRC) + TEXINPUTS=.:::texinputs latex $(LATEXFLAGS) $(SRC) TEXINPUTS=.:::texinputs latex $(LATEXFLAGS) $(SRC) TEXINPUTS=.:::texinputs latex $(LATEXFLAGS) $(SRC) | tee warnings @@ -41,7 +57,7 @@ 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 + rm -f $(SRC).{aux,bbl,blg,dvi,log,out,toc} warnings l2h.log *~ Clean: make clean rm -f $(SRC).{ps,pdf,ps.gz}