Makefile.am 1.21 KB
Newer Older
Arnold Daniels's avatar
Arnold Daniels committed
1 2 3 4 5 6
lib_LTLIBRARIES = lib_mysqludf_stem.la
lib_mysqludf_stem_la_SOURCES = lib_mysqludf_stem.cc
lib_mysqludf_stem_la_CXXFLAGS = -DSTANDARD -DMYSQL_SERVER @MYSQL_CFLAGS@
lib_mysqludf_stem_la_LDFLAGS = -module -avoid-version -no-undefined -L$(CURDIR)/libstemmer_c -lstemmer

SUBDIRS = libstemmer_c
7
EXTRA_DIST = tests *.sql API Makefile.libstemmer_c
Arnold Daniels's avatar
Arnold Daniels committed
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28

.PHONY : test

mrproper:
	make clean
	make maintainer-clean
	rm -rf config.guess config.h.* config.status configure missing config.sub ltmain.sh depcomp aclocal.m4 install.sh config.log compile Makefile.in doc/html *.loT mkinstalldirs install-sh *~

show-ld:
	echo $(lib_mysqludf_xql_la_LDFLAGS)

installdb: 
	$(MYSQL) < ./installdb.sql

uninstalldb: 
	$(MYSQL) < ./uninstalldb.sql
	
dist-hook:
	find $(distdir) -name .svn -o -name .DS_Store -o -name .cdtproject -o -name .project -o -name .settings | xargs --no-run-if-empty rm -rf

test: 
29
	for i in `ls tests/*.result | awk -F "." '{print $$1}'`; do echo "$$i"; $(MYSQLTEST) --result-file=$$i.result < $$i.test; done
Arnold Daniels's avatar
Arnold Daniels committed
30 31

test-generate: 
32
	for i in `ls tests/*.test | awk -F "." '{print $$1}'`; do echo "$$i"; $(MYSQLTEST) --result-file=$$i.result --record < $$i.test; done
Arnold Daniels's avatar
Arnold Daniels committed
33 34

test-clean:
35
	rm tests/*.log tests/*.reject