This is the mail archive of the cluster-cvs@sourceware.org mailing list for the cluster.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

resource-agents: master - build/init: install/create common dirs


Gitweb:        http://git.fedorahosted.org/git/resource-agents.git?p=resource-agents.git;a=commitdiff;h=1f0af6b3c8e9f0dc96558cfac431d08c24648126
Commit:        1f0af6b3c8e9f0dc96558cfac431d08c24648126
Parent:        fbc8a98d6c8f79aea5a7fb39b5074e97b2ea5187
Author:        Fabio M. Di Nitto <fdinitto@redhat.com>
AuthorDate:    Tue Mar 24 21:23:48 2009 +0100
Committer:     Fabio M. Di Nitto <fdinitto@redhat.com>
CommitterDate: Tue Mar 24 21:36:03 2009 +0100

build/init: install/create common dirs

a bunch of directories need to be created either at install time
or by init scripts for the stack to operate properly.

Make sure that the basic is all there from upstream.

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
---
 Makefile |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile
index 455d0b1..5b1e1c7 100644
--- a/Makefile
+++ b/Makefile
@@ -20,9 +20,17 @@ oldconfig:
 
 install:
 	set -e && for i in ${SUBDIRS}; do ${MAKE} -C $$i $@; done
+	install -d ${notifyddir}
+	install -d ${logdir}
+	install -d ${DESTDIR}/var/lib/cluster
+	install -d ${DESTDIR}/var/run/cluster
 
 uninstall:
 	set -e && for i in ${SUBDIRS}; do ${MAKE} -C $$i $@; done
+	rmdir ${notifyddir} || :;
+	rmdir ${logdir} || :;
+	rmdir ${DESTDIR}/var/lib/cluster || :;
+	rmdir ${DESTDIR}/var/run/cluster || :;
 
 clean:
 	set -e && for i in ${REALSUBDIRS}; do \


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]