
# Documentation of the WAIS system
#   brewster 2/91

RM = rm -f
AR = ar 
ARFLAGS = r

default: textfromman indexem

text =	waisindex.txt  waisserver.txt	

waisindex.txt: manl/waisindex.l
	nroff -man manl/waisindex.l | sed -e 's/_//g' > waisindex.txt

waisserver.txt: manl/waisserver.l	
	nroff -man manl/waisserver.l | sed -e 's/_//g' > waisserver.txt

textfromman: $(text)


indexem:	../sources/wais-docs.dct

../sources/wais-docs.dct: $(text)
	../bin/waisindex -d ../sources/wais-docs -t text *.txt *.rtf

clean:
	$(RM) *~
	$(RM) manl/*~
	$(RM) \#*\#
	$(RM) waisindex.txt waisserver.txt
	$(RM) ../sources/wais-docs.*
	$(RM) ../sources/*~
	$(RM) ../sources/*#
	$(RM) SearchLog
