DEV=ps

IFILES = title.dit intro.dit others.dit implementation.dit bugger.dit linking.dit selex.1.dit setup.dit security.dit conclusion.dit references.dit

all.ps: $(IFILES)
	grops -g $(IFILES) > all.ps
	
all.dit: $(IFILES)

print: $(IFILES)
	lpr -Pcanon -n $(IFILES)

preview: $(IFILES)
	dterm $(IFILES)

pics: rexpic.t rfspic.t rfsload.t secpic1.t secpic2.t buggerpic1.t buggerpic2.t buggerpic3.t linkingpic.t concpic.t

title.dit: title
	troff -T$(DEV) title > title.dit

intro.dit: macs intro rfspic.t rexpic.t
	troff -T$(DEV) intro > intro.dit

others.dit: macs others.t
	troff -T$(DEV) others.t > others.dit

others.t: others
	pic -T$(DEV) others > others.t

implementation.dit: macs implementation rfsload.t
	troff -T$(DEV) implementation > implementation.dit

bugger.dit: macs bugger buggerpic1.t buggerpic2.t buggerpic3.t
	troff -T$(DEV) bugger > bugger.dit

linking.dit: macs linking linkingpic.t
	troff -T$(DEV) linking > linking.dit

selex.1.dit: selex.1
	troff -T$(DEV) -man selex.1 > selex.1.dit

setup.dit: macs setup rexpic.t rfsload.t
	troff -T$(DEV) setup > setup.dit

security.dit: macs security secpic1.t secpic2.t
	troff -T$(DEV) security > security.dit

conclusion.dit: macs conclusion concpic.t
	troff -T$(DEV) conclusion > conclusion.dit

rexpic.t: rex.pic
	pic -T$(DEV) rex.pic > rexpic.t

rfspic.t: rfs.pic
	pic -T$(DEV) rfs.pic > rfspic.t

rfsload.t: rfsload.pic
	pic -T$(DEV) rfsload.pic > rfsload.t

rfsload.dit: rfsload.t
	troff -T$(DEV) rfsload.t > rfsload.dit

linkingpic.t: linking.pic
	pic -T$(DEV) linking.pic > linkingpic.t

secpic1.t: sec1.pic
	pic -T$(DEV) sec1.pic > secpic1.t

secpic2.t: sec2.pic
	pic -T$(DEV) sec2.pic > secpic2.t

buggerpic1.t: bugger1.pic
	pic -T$(DEV) bugger1.pic > buggerpic1.t

buggerpic2.t: bugger2.pic
	pic -T$(DEV) bugger2.pic > buggerpic2.t

buggerpic3.t: bugger3.pic
	pic -T$(DEV) bugger3.pic > buggerpic3.t

concpic.t: conc.pic
	pic -T$(DEV) conc.pic > concpic.t

concpic.dit: concpic.t
	troff -T$(DEV) concpic.t > concpic.dit

references.dit: references
	troff -T$(DEV) references > references.dit

clean:
	rm -f *.dit others.t rexpic.t rfspic.t rfsload.t linkingpic.t secpic1.t secpic2.t buggerpic?.t concpic.t 
