FILES = cover inheritance.1 intro.2 writing.3 methods.4 attributes.5 events.6 graphics.7 collection.8 toc

default:        ps

print:	ww.ps index.ps
	lpr ww.ps index.ps

ps:	index.ps

ww.ps:	$(FILES) mymac.picasso
	tbl $(FILES) | psroff -me -t mymac.picasso - > ww.ps 2> index.raw

index.raw:      ww.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

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

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

ch1.ps:	inheritance.1
	/bin/rm -f ch1.ps
	tbl inheritance.1 | psroff -me -t mymac.picasso - > ch1.ps

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

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

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

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

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

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

ch8.ps:	collection.8
	/bin/rm -f ch8.ps
	tbl collection.8 | psroff -me -t mymac.picasso - > ch8.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
