#define FIGDIR ./Fig
#define FIGLIST allmgather allcoff logenergy logwenergy fourcdp marine
#define NEEDDATA FIGLIST
#include "../Cakerules/SEP.martin.rules"
#include <SEP.defs>
#define SUBDIRS Energy Oseberg
#define PRINTER printer=sparc


/* notice about rebuilding figures with the data set */
marine.needdata&:  
	cp README.norsk FIGDIR/marine.warning

fourcdp.needdata&:  
	cp README.norsk FIGDIR/fourcdp.warning

%.needdata&:  
	cp README.data FIGDIR/%.warning

/* make slides:   cake shootslides  */

#define SLIDETUBE tube erase=once want_text=no buttons=no labels=no -geometry 1400x1500+0-1 scale=0.5 xshift=3.0 yshift=2.0

marine.slidefigures&: backcol.v 
	vppen backcol.v FIGDIR/marine.v | SLIDETUBE xscale=0.5 yscale=0.3

FIGDIR/allmgather.v: if not {{ cd Energy; cake ../Fig/allmgather.v }}
	( cd Energy ; cake ../Fig/allmgather.v )

FIGDIR/allcoff.v: if not {{ cd Energy ; cake ../Fig/allcoff.v }}
	( cd Energy ; cake ../Fig/allcoff.v )

FIGDIR/logenergy.v: if not {{ cd Energy ; cake ../Fig/logenergy.v }}
	( cd Energy ; cake ../Fig/logenergy.v )

FIGDIR/logwenergy.v: if not {{ cd Energy ; cake ../Fig/logwenergy.v }}
	( cd Energy ; cake ../Fig/logwenergy.v )


FIGDIR/fourcdp.v: if not {{ cd Oseberg; cake ../Fig/fourcdp.v }}
        ( cd Oseberg; cake ../Fig/fourcdp.v )

FIGDIR/marine.v: if not {{ cd Oseberg; cake ../Fig/marine.v }}
        ( cd Oseberg; cake ../Fig/marine.v )


clean&:  texclean  subdirclean 


cleanit&: texclean
	RM_CMD slide*.ps backcol.v

#include <SEP.idoc.rules>
