public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* cluster: STABLE3 - gfs2: fsck and mkfs binaries should be in /sbin
@ 2009-05-04 7:44 Fabio M. Di Nitto
0 siblings, 0 replies; only message in thread
From: Fabio M. Di Nitto @ 2009-05-04 7:44 UTC (permalink / raw)
To: cluster-cvs-relay
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=ba3acfc85402118fd955a67ef748078387458e78
Commit: ba3acfc85402118fd955a67ef748078387458e78
Parent: f0f94d388f158ff2f80dca6aacff3b41c291f79f
Author: Fabio M. Di Nitto <fdinitto@redhat.com>
AuthorDate: Mon May 4 09:43:14 2009 +0200
Committer: Fabio M. Di Nitto <fdinitto@redhat.com>
CommitterDate: Mon May 4 09:43:14 2009 +0200
gfs2: fsck and mkfs binaries should be in /sbin
also cleanup the Makefiles and remove more obsolted compat
symlinks and use the new FORCESBINT target for mount.
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
---
gfs2/fsck/Makefile | 17 ++++++-----------
gfs2/mkfs/Makefile | 19 ++++++++-----------
gfs2/mount/Makefile | 21 +++++++++------------
3 files changed, 23 insertions(+), 34 deletions(-)
diff --git a/gfs2/fsck/Makefile b/gfs2/fsck/Makefile
index 0422acc..7a99b36 100644
--- a/gfs2/fsck/Makefile
+++ b/gfs2/fsck/Makefile
@@ -1,10 +1,8 @@
-TARGET1= fsck.gfs2
-TARGET2= gfs2_fsck
+TARGET= fsck.gfs2
-SBINDIRT=$(TARGET1)
-SBINSYMT=$(TARGET2)
+FORCESBINT=$(TARGET)
-all: depends ${TARGET1} ${TARGET2}
+all: depends ${TARGET}
include ../../make/defines.mk
include $(OBJDIR)/make/cobj.mk
@@ -41,12 +39,9 @@ LDFLAGS += -L${libdir}
LDDEPS += ../libgfs2/libgfs2.a
-${TARGET1}: $(OBJS) ../libgfs2/libgfs2.a
+${TARGET}: $(OBJS) ${LDDEPS}
$(CC) -o $@ $^ $(LDFLAGS)
-${TARGET2}: ${TARGET1} ${LDDEPS}
- ln -fs ${TARGET1} ${TARGET2}
-
depends:
$(MAKE) -C ../libgfs2 all
@@ -59,9 +54,9 @@ test_bitmap: test_bitmap.o log.o
clean: generalclean
rm -f test_block_list test_bitmap
-${TARGET1}.pot: $(OBJS:.o=.c)
+${TARGET}.pot: $(OBJS:.o=.c)
xgettext -C -F --keyword=print_log --keyword=log_debug --keyword=log_info --keyword=_ \
--keyword=log_notice --keyword=log_warn --keyword=log_err --keyword=log_crit \
- --keyword=log_debug --keyword=log_err --keyword=log_print -d - $(OBJS:.o=.c) > ${TARGET1}.pot
+ --keyword=log_debug --keyword=log_err --keyword=log_print -d - $(OBJS:.o=.c) > ${TARGET}.pot
-include $(OBJS:.o=.d)
diff --git a/gfs2/mkfs/Makefile b/gfs2/mkfs/Makefile
index e268c38..aff94df 100644
--- a/gfs2/mkfs/Makefile
+++ b/gfs2/mkfs/Makefile
@@ -1,12 +1,12 @@
TARGET1= mkfs.gfs2
-TARGET2= gfs2_mkfs
-TARGET3= gfs2_jadd
-TARGET4= gfs2_grow
+TARGET2= gfs2_jadd
+TARGET3= gfs2_grow
-SBINDIRT=$(TARGET1)
-SBINSYMT=$(TARGET2) $(TARGET3) $(TARGET4)
+FORCESBINT= $(TARGET1)
-all: depends ${TARGET1} ${TARGET2} ${TARGET3} ${TARGET4}
+SBINSYMT=$(TARGET2) $(TARGET3)
+
+all: depends ${TARGET1} ${TARGET2} ${TARGET3}
include ../../make/defines.mk
include $(OBJDIR)/make/cobj.mk
@@ -35,13 +35,10 @@ ${TARGET1}: ${OBJS} ${LDDEPS}
$(CC) -o $@ $^ $(LDFLAGS)
${TARGET2}: ${TARGET1}
- ln -sf ${TARGET1} ${TARGET2}
+ ln -sf /sbin/${TARGET1} ${TARGET2}
${TARGET3}: ${TARGET1}
- ln -sf ${TARGET1} ${TARGET3}
-
-${TARGET4}: ${TARGET1}
- ln -sf ${TARGET1} ${TARGET4}
+ ln -sf /sbin/${TARGET1} ${TARGET3}
depends:
$(MAKE) -C ../libgfs2 all
diff --git a/gfs2/mount/Makefile b/gfs2/mount/Makefile
index 8706b17..e653348 100644
--- a/gfs2/mount/Makefile
+++ b/gfs2/mount/Makefile
@@ -1,12 +1,16 @@
-TARGET1= mount.gfs2
+TARGET= mount.gfs2
-all: ${TARGET1}
+FORCESBINT= $(TARGET)
+
+all: ${TARGET}
include ../../make/defines.mk
include $(OBJDIR)/make/cobj.mk
include $(OBJDIR)/make/clean.mk
+include $(OBJDIR)/make/install.mk
+include $(OBJDIR)/make/uninstall.mk
-OBJS1= mount.gfs2.o \
+OBJS= mount.gfs2.o \
ondisk1.o \
util.o \
mtab.o
@@ -23,16 +27,9 @@ LDFLAGS += -L${libdir}
LDDEPS += ../../group/libgfscontrol/libgfscontrol.a
-${TARGET1}: ${OBJS1} ${LDDEPS}
+${TARGET}: ${OBJS} ${LDDEPS}
$(CC) -o $@ $^ $(LDFLAGS)
-install:
- mkdir -p ${DESTDIR}/sbin
- install ${TARGET1} ${DESTDIR}/sbin
-
-uninstall:
- ${UNINSTALL} ${TARGET1} ${DESTDIR}/sbin
-
clean: generalclean
--include $(OBJS1:.o=.d)
+-include $(OBJS:.o=.d)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-05-04 7:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-04 7:44 cluster: STABLE3 - gfs2: fsck and mkfs binaries should be in /sbin 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).