ALL:	intro.M board.M ucds.M cdl.M
ALL:	cdm.M draw.M file.M lde.M gplot.M
ALL:	pins.M place.M plh.M plot.M
ALL:	prom.M rework.M wrap.M wref.M

prom.M: prom.t
rework.M: rework.t
wrap.M: wrap.t
wref.M: wref.t
intro.M: intro.t
board.M: board.t
ucds.M: ucds.t
cdl.M: cdl.t
cdm.M: cdm.t
draw.M: draw.t
file.M: file.t
lde.M: lde.t
gplot.M: gplot.t
pins.M: pins.t
place.M: place.t
plh.M: plh.t
plot.M: plot.t

intro.t: fig4.p fig3.p fig2.p fig1.p pin.p seq.p
intro.t: fig6.p fig6.2 fig6.3 fig6.4 fig6.5 fig6.6.p fig6.7
fig6.2:	fig6.w
		sed -e 's/-/\\&/g;s/^\./\\\&&/' <fig6.w >fig6.2
fig6.wx: fig6.w
		cdm fig6.w >fig6.wx
fig6.3: fig6.wx
		plh -f fig6.chp fig6.wx >fig6.3
fig6.4:	fig6.wb
		sed -e 's/-/\\&/g;s/^\./\\\&&/' <fig6.wb >fig6.4
fig6.5: fig6.wx fig6.wb
		wref fig6.wb fig6.wx >fig6.5 2>&1
fig6.pl: fig6.wx fig6.wb
		place -n fig6.wb fig6.wx; mv .pl fig6.pl
fig6.7: fig6.wx fig6.wb
		wrap -l fig6.wb fig6.wx | sed -e 'sU  *U	Ug' >fig6.7
fig6.6.p: fig6.pl
		place -p fig6.pl >fig6.6.p

cdm.t:	cdm1.p

clean:;	rm -f *.t *.p *.i\
		 fig6.wx fig6.3 fig6.2 fig6.4 fig6.5 fig6.6.p fig6.pl fig6.w fig6.7

.SUFFIXES:
.SUFFIXES:	.m .p .g .t .M .w

.g.p:;	draw -p $< >$@
.g.w:;	draw -w $<
.m.t:;	runtroff $*
.t.M:;	runcat $*
