
#define FIGDIR ../idocorg/Fig
#define BINDIR /usr/local/bin
#include <SEP.defs>
$                           defining the list of figures 
#define FIGLIST reprod pseudo vpmovie Amovie process wave funpanel

default&: read

install-to-read&: paper.dvi /usr/local/bin/IDOCORG
	cp paper.dvi ../Dvi/IDOCORG.dvi

$ 					install reading shell
BINDIR/IDOCORG IDOCORG&: IDOCORG.csh
	cp IDOCORG.csh BINDIR/IDOCORG
	chmod +x BINDIR/IDOCORG

$                           			Rules for making figures 
FIGDIR/reprod.v: Data/Hbarents.HH
        Window n1=512 f2=47 n2=1 n3=1 <Data/Hbarents.HH >trace.H
        echo " d1=.004 d2=25. d3=0. o1=0. o2=0. o3=0." >>trace.H
	Wiggle < trace.H out=FIGDIR/reprod.v >/dev/null

FIGDIR/pseudo.v: Data/Hbarents.HH
        Window n1=512 f2=47 n2=1       <Data/Hbarents.HH >section.H
        echo " d1=.004 d2=25. d3=25. o1=0. o2=0. o3=0." >>section.H
	Wiggle < section.H out=FIGDIR/pseudo.v >/dev/null

FIGDIR/vpmovie.v: Data/thai.HH
	Window f3=15 n3=1 <Data/thai.HH >junk.H
	Ta2vplot <junk.H             out=FIGDIR/vpmovie.v  >/dev/null
	Ta2vplot <junk.H             out=FIGDIR/vpmovie.v3 >/dev/null

FIGDIR/Amovie.v: Data/thai.HH
	Window f3=2 n3=30 <Data/thai.HH >fullmovie.H
	Window f3=10 n3=1 <fullmovie.H >junk.H
	Ta2vplot <junk.H                    out=FIGDIR/Amovie.v  >/dev/null
	Cat  fullmovie.H >FIGDIR/Amovie.A

FIGDIR/funpanel.v:  if not exist FIGDIR/funpanel.v
	Banner 100 "Interaction" >junk.H
	Byte <junk.H |Reverse which=1 >junk2.H
	Ta2vplot <junk2.H title="Menus" out=FIGDIR/funpanel.v >/dev/null

FIGDIR/process.%:  if not {{ cd process ; cake -q ../Fig/process.% }}
	! cd process ; cake ../Fig/process.%

FIGDIR/wave.%: if not {{ cd wave ; cake -q ../Fig/wave.% }} 
	! cd wave ; cake ../Fig/wave.%

$                           			override default actions
funpanel.action&:
	xtpanel-examples

$                                       Binaries live here temporarily 
Bin/%:  if not {{ cd Bin ; cake -q % }}
	! cd Bin; cake %

$                                       Libraries live here  temporarily 
Lib/%:  if not {{ cd Lib ; cake -q % }}
	! cd Lib ; cake %

$                                       Source code used through out the paper 
Src/%:  if not {{ cd Bin ; cake -q % }} 
	! cd Src ; cake %

$                           make sure all directories are cleaned 
clean&: texclean jclean
	! cd Data ; cake clean
	! cd Lib ; cake clean
	! cd Src ; cake clean
	! cd Bin ; cake clean
	! cd process ; cake clean
	! cd wave ; cake clean

#include <SEP.prog.rules>
#include <SEP.obj.rules>
#include <SEP.idoc.rules>
