From 4f11f342b0d38977160e5afd4637efad853f353b Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 28 Jun 2006 21:45:06 +0000 Subject: [PATCH] Install hooks puts versions for all bin_PROGRAMS programs. --- index/Makefile.am | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/index/Makefile.am b/index/Makefile.am index 1c0778e..bbb25b9 100644 --- a/index/Makefile.am +++ b/index/Makefile.am @@ -1,4 +1,4 @@ -## $Id: Makefile.am,v 1.44 2006-06-28 18:19:32 adam Exp $ +## $Id: Makefile.am,v 1.45 2006-06-28 21:45:06 adam Exp $ noinst_PROGRAMS = apitest kdump zebrash @@ -51,11 +51,13 @@ zebrash_LDADD= $(zebralibs) $(YAZLALIB) $(READLINE_LIBS) LDADD = $(zebralibs) $(YAZLALIB) install-exec-hook: - cd $(DESTDIR)$(bindir) && mv -f zebraidx zebraidx$(PACKAGE_SUFFIX) - cd $(DESTDIR)$(bindir) && ln -sf zebraidx$(PACKAGE_SUFFIX) zebraidx - cd $(DESTDIR)$(bindir) && mv -f zebrasrv zebrasrv$(PACKAGE_SUFFIX) - cd $(DESTDIR)$(bindir) && ln -sf zebrasrv$(PACKAGE_SUFFIX) zebrasrv + 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) && rm -f zebraidx$(PACKAGE_SUFFIX) - cd $(DESTDIR)$(bindir) && rm -f zebrasrv$(PACKAGE_SUFFIX) + cd $(DESTDIR)$(bindir) && for p in $(bin_PROGRAMS); do \ + rm -f $$p$(PACKAGE_SUFFIX); \ + done + -- 1.7.10.4