[Drbd-dev] [PATCH] build: properly create DRBD_LIB_DIR and	DRBD_RUN_DIR
    Florian Haas 
    florian at hastexo.com
       
    Sun Nov  6 17:09:56 CET 2011
    
    
  
configure defines DRBD_LIB_DIR and DRBD_RUN_DIR to be
$localstatedir/{lib,run}/${PACKAGE_TARNAME), but "make install"
- does not create DRBD_RUN_DIR at all,
- does not define DRBD_LIB_DIR in terms of $(PACKAGE_TARNAME).
Bring the Makefile into sync with what the userland tools expect.
---
 user/Makefile.in |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/user/Makefile.in b/user/Makefile.in
index 8252f01..4a26752 100644
--- a/user/Makefile.in
+++ b/user/Makefile.in
@@ -113,7 +113,8 @@ distclean: clean
 install:
 ifeq ($(WITH_UTILS),yes)
 	install -d $(DESTDIR)/sbin/
-	install -d $(DESTDIR)$(localstatedir)/lib/drbd
+	install -d $(DESTDIR)$(localstatedir)/lib/$(PACKAGE_TARNAME)
+	install -d $(DESTDIR)$(localstatedir)/run/$(PACKAGE_TARNAME)
 	install -d $(DESTDIR)$(localstatedir)/lock
 	if getent group haclient > /dev/null 2> /dev/null ; then	\
 		install -g haclient -m 4750 drbdsetup $(DESTDIR)/sbin/ ;	\
-- 
1.7.4.1
    
    
More information about the drbd-dev
mailing list