public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* gfs2-utils: master - build/init: install/create common dirs
@ 2009-03-24 20:37 Fabio M. Di Nitto
  0 siblings, 0 replies; only message in thread
From: Fabio M. Di Nitto @ 2009-03-24 20:37 UTC (permalink / raw)
  To: cluster-cvs-relay

Gitweb:        http://git.fedorahosted.org/git/gfs2-utils.git?p=gfs2-utils.git;a=commitdiff;h=37231b6f2f25658ab64a131896a3c5e559c30e0c
Commit:        37231b6f2f25658ab64a131896a3c5e559c30e0c
Parent:        4439e5d794eeeb4fba01532b30623c674e2b4d40
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:02 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 ee73c87..3e19ebc 100644
--- a/Makefile
+++ b/Makefile
@@ -28,9 +28,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 \


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-03-24 20:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-24 20:37 gfs2-utils: master - build/init: install/create common dirs Fabio M. Di Nitto

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).