FILES = cover title+abstract intro.1 windows.2 resources.3 framework.4 \
	data.5 propagation.6 collection.7 widget.8 text.9 buttons.10 \
	controls.11 image.12 menus.13 tables.14 graphics.15 appl-wid.16 \
	provided.17 defaults.18 references.19 toc

default:	ps

ps:	pic-ref.ps

print:	pic-ref.ps index.ps
	lpr pic-ref.ps index.ps

words.hashd:	words
	spellin < words > words.hashd

temp.ps: INDEX $(FILES) tmac.picasso
	bib -tstda $(FILES) | tbl | \
	    psroff -me -t -o32,68,109,165 tmac.picasso - > temp.ps 2> /dev/null

pic-ref.ps: INDEX $(FILES) tmac.picasso
	bib -tstda $(FILES) | tbl | \
	    psroff -me -t tmac.picasso - > pic-ref.ps 2> index.raw

index.raw:	pic-ref.ps

index.me:	index.raw
	sort -t: +0 +1 +2n +3n index.raw | awk -f fix.awk > index.me

index.ps:	index.me
	psroff -me -t tmac.index index.me > index.ps

spell:	spell.out

spell.out:	$(FILES) words.hashd
	spell ${FILES} | spellout words.hashd > spell.out

clean:
	/bin/rm -f *.ps *# *~

title.ps:	title+abstract
	/bin/rm -f title.ps
	psroff title+abstract -me -t tmac.picasso - > title.ps

cover.ps:	cover
	/bin/rm -f cover.ps
	tbl cover.ps | psroff -me -t tmac.picasso - > cover.ps

ch1.ps:	INDEX intro.1
	/bin/rm -f ch1.ps
	tbl intro.1 | psroff -me -t tmac.picasso - > ch1.ps

ch2.ps:	windows.2
	/bin/rm -f ch2.ps
	tbl windows.2 | psroff -me -t tmac.picasso - > ch2.ps

ch3.ps:	resources.3
	/bin/rm -f ch3.ps
	tbl resources.3 | psroff -me -t tmac.picasso - > ch3.ps

ch4.ps:	framework.4
	/bin/rm -f ch4.ps
	tbl framework.4 | psroff -me -t tmac.picasso - > ch4.ps

ch5.ps:	data.5
	/bin/rm -f ch5.ps
	tbl data.5 | psroff -me -t tmac.picasso - > ch5.ps

ch6.ps:	propagation.6
	/bin/rm -f ch6.ps
	tbl propagation.6 | psroff -me -t tmac.picasso - > ch6.ps

ch7.ps:	collection.7
	/bin/rm -f ch7.ps
	tbl collection.7 | psroff -me -t tmac.picasso - > ch7.ps

ch8.ps:	widget.8
	/bin/rm -f ch8.ps
	tbl widget.8 | psroff -me -t tmac.picasso - > ch8.ps

ch9.ps:	text.9
	/bin/rm -f ch9.ps
	tbl text.9 | psroff -me -t tmac.picasso - > ch9.ps

ch10.ps:	buttons.10
	/bin/rm -f ch10.ps
	tbl buttons.10 | psroff -me -t tmac.picasso - > ch10.ps

ch11.ps:	controls.11
	/bin/rm -f ch11.ps
	tbl controls.11 | psroff -me -t tmac.picasso - > ch11.ps

ch12.ps:	image.12
	/bin/rm -f ch12.ps
	tbl image.12 | psroff -me -t tmac.picasso - > ch12.ps

ch13.ps: menus.13
	/bin/rm -f ch13.ps
	tbl menus.13 | psroff -me -t tmac.picasso - > ch13.ps

ch14.ps:	tables.14
	/bin/rm -f ch14.ps
	tbl tables.14 | psroff -me -t tmac.picasso - > ch14.ps

ch15.ps:	graphics.15
	/bin/rm -f ch15.ps
	tbl graphics.15 | psroff -me -t tmac.picasso - > ch15.ps

ch16.ps:	appl-wid.16
	/bin/rm -f ch16.ps
	tbl appl-wid.16 | psroff -me -t tmac.picasso - > ch16.ps

ch17.ps:	provided.17
	/bin/rm -f ch17.ps
	tbl provided.17 | psroff -me -t tmac.picasso - > ch17.ps

ch18.ps:	defaults.18
	/bin/rm -f ch18.ps
	tbl defaults.18 | psroff -me -t tmac.picasso - > ch18.ps

references.ps:	references.19
	/bin/rm -f references.ps
	tbl references.19 | psroff -me -t tmac.picasso - > references.ps

title:	title.ps

ch1:	ch1.ps

ch2:	ch2.ps

ch3:	ch3.ps

ch4:	ch4.ps

ch5:	ch5.ps

ch6:	ch6.ps

ch7:	ch7.ps

ch8:	ch8.ps

ch9:	ch9.ps

ch10:	ch10.ps

ch11:	ch11.ps

ch12:	ch12.ps

ch13:	ch13.ps

ch14:	ch14.ps

ch15:	ch15.ps

ch16:	ch16.ps

ch17:	ch17.ps

ch18:	ch18.ps

references:  references.ps

INDEX: refs
	invert refs

