# # GETAを使ったファイル検索 # # $Date: 2003/01/05 10:06:36 $ # $Revision: 1.2 $ # GETAROOT = /usr/local/geta INCDIR = $(GETAROOT)/include LIBDIR = $(GETAROOT)/lib MKW = $(GETAROOT)/sbin/mkw DUMPWAM = $(GETAROOT)/bin/dumpwam LDFLAGS = -L$(LIBDIR) -lae -lwam -lgetamu -lsrvmu -lm index: conf data freqfile find `pwd`/freqfiles -type f -print > freqfilelist GETAROOT=`pwd`; export GETAROOT; $(MKW) ir @freqfilelist \rm -f freqfilelist freqfile: freqfiles bin/makefreqfiles `pwd` freqfiles: mkdir freqfiles data: mkdir data conf: etc/ci.conf etc/ci.conf: etc echo "handle: all.ir" > etc/ci.conf echo "short-name: ir" >> etc/ci.conf echo "dataroot: "`pwd`"/data/" >> etc/ci.conf echo "jma:p: "`pwd`"/bin/japanese.sh" >> etc/ci.conf etc: mkdir etc clean: \rm -f freqfilelist *~ \#* */*~ data/cw.? data/xr.? \rm -f src/*.o bin/search bin/search.exe \rm -f core *.stackdump */*.stackdump */core bin/cleanfreqfiles `pwd`/freqfiles realclean: clean \rm -f -r freqfiles data etc search: bin/search bin/search: $(CC) $(CFLAGS) -o bin/search src/search.c $(LDFLAGS) test: search GETAROOT=`pwd`; export GETAROOT; echo unix | bin/search tar: tar cvf ir.tar \ Makefile \ index.html \ src/search.c \ bin/makefreqfiles \ bin/cleanfreqfiles \ bin/japanese.sh gzip ir.tar