
#define FIGDIR ./Fig

#define PSARGS  color=n 

#include <SEP.defs>

$ names of the figures ( vplot files and postscript files )

#define FIGLIST rect-one rect-all pol-one pol-all \
    grad-both parax-both over-three refl-three blob-three

#define FIG3NAMES rect-one rect-all pol-one pol-all \
    grad-both parax-both over-three refl-three blob-three

#define PSFILES [[ sub X FIGDIR/X.ps FIGLIST ]]
#define VPFILES [[ sub X FIGDIR/X.v FIGLIST ]]
#define V3FILES [[ sub X FIGDIR/X.v3 FIG3NAMES ]]

view&:  figures
        texpr -s -v -bib Polar-greens

print&: figures
        texpr -s -bib printer=lw Polar-greens

v3plots&:  V3FILES


clean&: 
	-RM_CMD *.log 
        -RM_CMD *.aux 
	pushd Src; cake clean; popd
	pushd Data; cake clean; popd
	pushd Fig; cake clean; popd

FIGDIR/%.v :   if not {{ pushd FIGDIR; cake -q %.v }}
	pushd FIGDIR; cake %.v

FIGDIR/%.v3 :   if % in FIG3NAMES and not {{ pushd FIGDIR; cake -q %.v3 }}
	pushd FIGDIR; cake %.v3

#include <SEP.idoc.rules>

