From 6ed7a96dfb17cfd8699db67b03735e2c01be9657 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Sat, 4 Jul 2009 00:39:08 +0200 Subject: [PATCH] build-sys: fix exec/data install hooks Signed-off-by: Karel Zak --- login-utils/Makefile.am | 2 ++ shlibs/blkid/src/Makefile.am | 2 +- shlibs/uuid/src/Makefile.am | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/login-utils/Makefile.am b/login-utils/Makefile.am index 5ed581b8..d91a5eb7 100644 --- a/login-utils/Makefile.am +++ b/login-utils/Makefile.am @@ -124,6 +124,8 @@ install-exec-hook:: cd $(DESTDIR)$(sbindir) && ln -sf initctl need cd $(DESTDIR)$(sbindir) && ln -sf initctl display-services cd $(DESTDIR)$(sbindir) && ln -sf initctl provide + +install-data-hook: cd $(DESTDIR)$(mandir)/man8 && ln -sf initctl.8 need.8 cd $(DESTDIR)$(mandir)/man8 && ln -sf initctl.8 display-services.8 cd $(DESTDIR)$(mandir)/man8 && ln -sf initctl.8 provide.8 diff --git a/shlibs/blkid/src/Makefile.am b/shlibs/blkid/src/Makefile.am index 2771f3e8..96e12fd2 100644 --- a/shlibs/blkid/src/Makefile.am +++ b/shlibs/blkid/src/Makefile.am @@ -50,7 +50,7 @@ test_%: %.c # move lib from $(usrlibexecdir) to $(libdir) if needed -install-data-hook: +install-exec-hook: if test "$(usrlibexecdir)" != "$(libdir)"; then \ mkdir -p $(DESTDIR)$(libdir); \ mv $(DESTDIR)$(usrlibexecdir)/libblkid.so.* $(DESTDIR)$(libdir); \ diff --git a/shlibs/uuid/src/Makefile.am b/shlibs/uuid/src/Makefile.am index ddb55921..264e6adc 100644 --- a/shlibs/uuid/src/Makefile.am +++ b/shlibs/uuid/src/Makefile.am @@ -31,7 +31,7 @@ test_%: %.c # move lib from $(usrlibexecdir) to $(libdir) if needed -install-data-hook: +install-exec-hook: if test "$(usrlibexecdir)" != "$(libdir)"; then \ mkdir -p $(DESTDIR)$(libdir); \ mv $(DESTDIR)$(usrlibexecdir)/libuuid.so.* $(DESTDIR)$(libdir); \ -- 2.39.5