X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2FMakefile.am;h=7a0a6d815353555fb4189a2d5b9d63b698411513;hb=3e61994433eac158b5d087f3cedaddaf03b06620;hp=3e1d7b65c7530654d6526f90a45d0ad2ffe2efc1;hpb=7f02bad575a64004a3a0122a99666afd41dd8966;p=idzebra-moved-to-github.git diff --git a/index/Makefile.am b/index/Makefile.am index 3e1d7b6..7a0a6d8 100644 --- a/index/Makefile.am +++ b/index/Makefile.am @@ -1,18 +1,28 @@ -## $Id: Makefile.am,v 1.33 2005-09-15 09:27:18 pop Exp $ +## $Id: Makefile.am,v 1.43 2006-06-28 13:26:16 adam Exp $ -noinst_PROGRAMS = apitest kdump -lib_LTLIBRARIES = libidzebra-api.la +noinst_PROGRAMS = apitest kdump zebrash -libidzebra_api_la_SOURCES = dir.c dirs.c trav.c kinput.c kcompare.c \ - attribute.c symtab.c recindex.c recstat.c lockutil.c \ - zebraapi.c api_swig.c \ - zinfo.c invstat.c sortidx.c compact.c zsets.c zrpn.c \ - rank1.c trunc.c retrieve.c extract.c rankstatic.c \ - index.h recindex.h recindxp.h \ - zinfo.h zserver.h zvrank.c limit.c kcontrol.c +lib_LTLIBRARIES = libidzebra-api.la -bin_PROGRAMS = zebraidx zebrasrv zebrash +libidzebra_api_la_LDFLAGS=-version-info $(ZEBRALIBS_VERSION) +libidzebra_api_la_SOURCES = \ + api_swig.c attribute.c \ + compact.c \ + dir.c dirs.c \ + extract.c \ + index.h invstat.c \ + kinput.c kcompare.c kcontrol.c \ + limit.c \ + orddict.c orddict.h \ + rank.h rank1.c ranksimilarity.c rankstatic.c \ + recindex.c recindex.h recindxp.h reckeys.c reckeys.h recstat.c retrieve.c \ + sortidx.c symtab.c \ + update_path.c update_file.c trunc.c \ + zebraapi.c zinfo.c zinfo.h zserver.h zsets.c zrpn.c + + +bin_PROGRAMS = zebraidx zebrasrv zebralibs = \ libidzebra-api.la \ @@ -40,3 +50,12 @@ zebrash_LDADD= $(zebralibs) $(YAZLALIB) $(READLINE_LIBS) LDADD = $(zebralibs) $(YAZLALIB) +install-exec-hook: + cd $(bindir) && mv -f zebraidx zebraidx$(PACKAGE_SUFFIX) + cd $(bindir) && ln -sf zebraidx$(PACKAGE_SUFFIX) zebraidx + cd $(bindir) && mv -f zebrasrv zebrasrv$(PACKAGE_SUFFIX) + cd $(bindir) && ln -sf zebrasrv$(PACKAGE_SUFFIX) zebrasrv + +uninstall-hook: + cd $(bindir) && rm -f zebraidx$(PACKAGE_SUFFIX) + cd $(bindir) && rm -f zebrasrv$(PACKAGE_SUFFIX)