Skip to contentSkip to conversation

cluster ccs/Makefile cman/Makefile dlm/Makefil ...

Cluster-devel [email protected] 1 participant 1 message Aug 29, 2007

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Changes by: fabbione at sourceware.org 2007-08-29 03:09:56

Modified files:

	ccs            : Makefile 
	cman           : Makefile 
	dlm            : Makefile 
	dlm/tests      : Makefile 
	fence          : Makefile 
	fence/agents   : Makefile 
	gfs            : Makefile 
	gfs/tests      : Makefile 
	gfs2           : Makefile 
	gnbd           : Makefile 
	gnbd/tools     : Makefile 
	group          : Makefile 
	rgmanager      : Makefile 
	rgmanager/src  : Makefile 

Added files:
make : passthrough.mk

Log message:
This is the first patch of a long series to collect common Makefile targets into their own snippets.

Collect all passthrough operations into make/passthrough.mk.

Update all passthrough Makefiles to use the new snippet.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/ccs/Makefile.diff?cvsroot=cluster&r1=1.12&r2=1.13
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/Makefile.diff?cvsroot=cluster&r1=1.11&r2=1.12
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/dlm/Makefile.diff?cvsroot=cluster&r1=1.10&r2=1.11
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/dlm/tests/Makefile.diff?cvsroot=cluster&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/Makefile.diff?cvsroot=cluster&r1=1.8&r2=1.9
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/Makefile.diff?cvsroot=cluster&r1=1.17&r2=1.18
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs/Makefile.diff?cvsroot=cluster&r1=1.11&r2=1.12
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs/tests/Makefile.diff?cvsroot=cluster&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/Makefile.diff?cvsroot=cluster&r1=1.10&r2=1.11
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gnbd/Makefile.diff?cvsroot=cluster&r1=1.4&r2=1.5
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gnbd/tools/Makefile.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/Makefile.diff?cvsroot=cluster&r1=1.9&r2=1.10
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/make/passthrough.mk.diff?cvsroot=cluster&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/Makefile.diff?cvsroot=cluster&r1=1.5&r2=1.6
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/Makefile.diff?cvsroot=cluster&r1=1.4&r2=1.5

ccs/Makefile +1 -8
@@ -11,13 +11,6 @@
 ###############################################################################
 
 include ../make/defines.mk
+include ../make/passthrough.mk
 
 SUBDIRS=lib daemon ccs_test ccs_tool man
-
-all: ${SUBDIRS}
-
-%:
-	set -e && \
-	for i in ${SUBDIRS}; do \
-		${MAKE} -C $$i $@; \
-	done
cman/Makefile +1 -8
@@ -12,13 +12,6 @@
 ###############################################################################
 
 include ../make/defines.mk
+include ../make/passthrough.mk
 
 SUBDIRS=lib cman_tool daemon qdisk init.d man
-
-all: ${SUBDIRS}
-
-%:
-	set -e && \
-	for i in ${SUBDIRS}; do \
-		${MAKE} -C $$i $@; \
-	done
dlm/Makefile +3 -6
@@ -10,10 +10,7 @@
 ###############################################################################
 ###############################################################################
 
-SUBDIRS=lib tool man
+include ../make/defines.mk
+include ../make/passthrough.mk
 
-%:
-	set -e && \
-	for i in ${SUBDIRS}; do \
-		${MAKE} -C $$i $@; \
-	done
+SUBDIRS=lib tool man
dlm/tests/Makefile +3 -6
@@ -10,10 +10,7 @@
 ###############################################################################
 ###############################################################################
 
-SUBDIRS=usertest
+include ../../make/defines.mk
+include ../../make/passthrough.mk
 
-%:
-	set -e && \
-	for i in ${SUBDIRS}; do \
-		${MAKE} -C $$i $@; \
-	done
+SUBDIRS=usertest
fence/Makefile +1 -8
@@ -12,13 +12,6 @@
 ###############################################################################
 
 include ../make/defines.mk
+include ../make/passthrough.mk
 
 SUBDIRS=agents fence_node fence_tool fenced man
-
-all: ${SUBDIRS}
-
-%:
-	set -e && \
-	for i in ${SUBDIRS}; do \
-		${MAKE} -C $$i $@; \
-	done
fence/agents/Makefile +1 -0
@@ -12,6 +12,7 @@
 ###############################################################################
 
 include ../../make/defines.mk
+include ../../make/passthrough.mk
 
 SUBDIRS = ${fence_agents}
 
gfs/Makefile +1 -1
@@ -12,6 +12,7 @@
 ###############################################################################
 
 include ../make/defines.mk
+include ../make/passthrough.mk
 
 SUBDIRS=libgfs gfs_debug gfs_edit gfs_fsck gfs_grow gfs_jadd gfs_mkfs gfs_quota gfs_tool man init.d
 
@@ -30,4 +31,3 @@
 	if [ "$@" = "uninstall" ]; then \
 		cd ${sbindir}; rm -f mount.gfs umount.gfs; \
 	fi
-		
gfs/tests/Makefile +3 -6
@@ -10,10 +10,7 @@
 ###############################################################################
 ###############################################################################
 
-SUBDIRS=filecon2 mmdd
+include ../make/defines.mk
+include ../make/passthrough.mk
 
-%:
-	set -e && \
-	for i in ${SUBDIRS}; do \
-		${MAKE} -C $$i $@; \
-	done
+SUBDIRS=filecon2 mmdd
gfs2/Makefile +1 -8
@@ -12,13 +12,6 @@
 ###############################################################################
 
 include ../make/defines.mk
+include ../make/passthrough.mk
 
 SUBDIRS=libgfs2 convert edit fsck mkfs mount quota tool man init.d
-
-all: ${SUBDIRS}
-
-%:
-	set -e && \
-	for i in ${SUBDIRS}; do \
-		${MAKE} -C $$i $@; \
-	done
gnbd/Makefile +1 -8
@@ -12,13 +12,6 @@
 ###############################################################################
 
 include ../make/defines.mk
+include ../make/passthrough.mk
 
 SUBDIRS=utils client server tools man
-
-all: ${SUBDIRS}
-
-%:
-	set -e && \
-	for i in ${SUBDIRS}; do \
-		${MAKE} -C $$i $@; \
-	done
gnbd/tools/Makefile +1 -8
@@ -12,13 +12,6 @@
 ###############################################################################
 
 include ../../make/defines.mk
+include ../../make/passthrough.mk
 
 SUBDIRS=fence_gnbd gnbd_export gnbd_import
-
-all: ${SUBDIRS}
-
-%:
-	set -e && \
-	for i in ${SUBDIRS}; do \
-		${MAKE} -C $$i $@; \
-	done
group/Makefile +3 -6
@@ -10,10 +10,7 @@
 ###############################################################################
 ###############################################################################
 
-SUBDIRS=lib daemon tool dlm_controld gfs_controld man
+include ../make/defines.mk
+include ../make/passthrough.mk
 
-%:
-	set -e && \
-	for i in ${SUBDIRS}; do \
-		${MAKE} -C $$i $@; \
-	done
+SUBDIRS=lib daemon tool dlm_controld gfs_controld man

/cvs/cluster/cluster/make/passthrough.mk,v --> standard output revision 1.1

- renamed from make/passthrough.mk +7 -0
@@ -0,0 +1,7 @@
+all: ${SUBDIRS}
+
+%:
+	set -e && \
+	for i in ${SUBDIRS}; do \
+		${MAKE} -C $$i $@; \
+	done
rgmanager/Makefile +1 -8
@@ -12,13 +12,6 @@
 ###############################################################################
 
 include ../make/defines.mk
+include ../make/passthrough.mk
 
 SUBDIRS=src man init.d
-
-all: ${SUBDIRS}
-
-%:
-	set -e && \
-	for i in ${SUBDIRS}; do \
-		${MAKE} -C $$i $@; \
-	done
rgmanager/src/Makefile +1 -8
@@ -12,13 +12,6 @@
 ###############################################################################
 
 include ../../make/defines.mk
+include ../../make/passthrough.mk
 
 SUBDIRS=resources clulib daemons utils
-
-all: ${SUBDIRS}
-
-%:
-	set -e && \
-	for i in ${SUBDIRS}; do \
-		${MAKE} -C $$i $@; \
-	done