Revert. Libs installed in /usr/lib (again). Minor tweaks for
[idzebra-moved-to-github.git] / index / Makefile.am
index 5b8e891..b29b759 100644 (file)
@@ -1,18 +1,27 @@
-## $Id: Makefile.am,v 1.35 2006-01-19 13:31:08 adam Exp $
+## $Id: Makefile.am,v 1.47 2006-06-29 13:47:57 adam Exp $
 
-noinst_PROGRAMS = apitest kdump
+noinst_PROGRAMS = apitest kdump zebrash
 
 lib_LTLIBRARIES = libidzebra-api.la
 
-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 reckeys.c reckeys.h \
- zinfo.h zserver.h zvrank.c limit.c kcontrol.c orddict.c orddict.h
-
-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 +49,14 @@ zebrash_LDADD= $(zebralibs) $(YAZLALIB) $(READLINE_LIBS)
 
 LDADD = $(zebralibs) $(YAZLALIB)
 
+install-exec-hook:
+       cd $(DESTDIR)$(bindir); for p in $(bin_PROGRAMS); do \
+               mv -f $$p $$p$(PACKAGE_SUFFIX); \
+               ln -sf $$p$(PACKAGE_SUFFIX) $$p; \
+       done
+
+uninstall-hook:
+       cd $(DESTDIR)$(bindir) && for p in $(bin_PROGRAMS); do \
+               rm -f $$p$(PACKAGE_SUFFIX); \
+       done
+