# Makefile for the chemistry stockroom # # This Makefile will reformat and reindex the chem stockroom inventory # database as needed. It is usually invoked by "deliver-chemstock" # script, which is in turn invoked by "/home/cwis/bin/deliver". # #----------------------------------------------------------------------- # History: # 09/19/94 PASR Original version. # 10/11/94 PASR Modified to use WAIS-1-0-11 and handle files uploaded # via anonymous FTP. # 1997.01.16 PASR Modified to use wais-2-1-6 and handle files uploaded # via non-anonymous FTP. #----------------------------------------------------------------------- PERL = /usr/local/bin/perl CHEMSTOCK2WAIS = chemstock2wais.pl WAISINCBIN = /usr/site/wais-2-1-6/bin WAISPARSE = $(WAISINCBIN)/waisparse WAISINDEX = $(WAISINCBIN)/waisindex DATADIR = /home/cwis/www/projects/chemstock INDEXDIR = $(DATADIR) RAWDATA = wmrftp.lst RAWREAD = wmrintro.txt default: $(INDEXDIR)/index.doc $(INDEXDIR)/index.fn $(INDEXDIR)/index.hl $(INDEXDIR)/index.inv $(INDEXDIR)/index.doc $(INDEXDIR)/index.fn $(INDEXDIR)/index.hl $(INDEXDIR)/index.inv: chemstock.wais $(WAISPARSE) -parse paragraph ./chemstock.wais | \ $(WAISINDEX) -nocat -stem porter -d $(INDEXDIR) chemstock.wais: $(RAWDATA) $(PERL) $(CHEMSTOCK2WAIS) < $(RAWDATA) > chemstock.wais clean: /bin/rm -f $(INDEXDIR)/index.wais $(INDEXDIR)/index.dct $(INDEXDIR)/index.doc $(INDEXDIR)/index.fn $(INDEXDIR)/index.hl $(INDEXDIR)/index.inv