[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] [PATCH] collect fence/agents perl Makefile common targes



This patch collects all the common targets for fence/agents perl agents to
make/fenceperl.mk and updates all the relevant Makefiles

use Std::Patch::Disclaimer;

Cheers
Fabio

-- 
I'm going to make him an offer he can't refuse.
diff -Naurd redhat-cluster-suite-2.20070823/fence/agents/baytech/Makefile cluster/fence/agents/baytech/Makefile
--- redhat-cluster-suite-2.20070823/fence/agents/baytech/Makefile	2007-08-23 06:48:19.000000000 +0200
+++ cluster/fence/agents/baytech/Makefile	2007-08-29 06:00:57.000000000 +0200
@@ -15,25 +15,4 @@
 
 TARGET= fence_baytech
 
-all: $(TARGET)
-
-$(TARGET): $(TARGET).pl
-	: > $(TARGET)
-	awk "{print}(\$$1 ~ /#BEGIN_VERSION_GENERATION/){exit 0}" $(TARGET).pl >> $(TARGET)
-	echo "\$$RELEASE_VERSION=\"${RELEASE_VERSION}\";" >> $(TARGET)
-	${DEF2VAR} ${BUILDDIR}/config/copyright.cf perl REDHAT_COPYRIGHT >> $(TARGET)
-	echo "\$$BUILD_DATE=\"(built `date`)\";" >> $(TARGET)
-	awk -v p=0 "(\$$1 ~ /#END_VERSION_GENERATION/){p = 1} {if(p==1)print}" $(TARGET).pl >> $(TARGET)
-	chmod +x $(TARGET)
-
-install: all
-	if [ ! -d ${sbindir} ]; then \
-		install -d ${sbindir}; \
-	fi
-	install -m755 ${TARGET} ${sbindir}
-
-uninstall:
-	${UNINSTALL} ${TARGET} ${sbindir}
-
-clean:
-	rm -f $(TARGET)
+include ../../../make/fenceperl.mk
diff -Naurd redhat-cluster-suite-2.20070823/fence/agents/bladecenter/Makefile cluster/fence/agents/bladecenter/Makefile
--- redhat-cluster-suite-2.20070823/fence/agents/bladecenter/Makefile	2007-08-23 06:48:19.000000000 +0200
+++ cluster/fence/agents/bladecenter/Makefile	2007-08-29 06:09:42.000000000 +0200
@@ -15,25 +15,4 @@
 
 TARGET= fence_bladecenter
 
-all: $(TARGET)
-
-$(TARGET): $(TARGET).pl
-	: > $(TARGET)
-	awk "{print}(\$$1 ~ /#BEGIN_VERSION_GENERATION/){exit 0}" $(TARGET).pl >> $(TARGET)
-	echo "\$$RELEASE_VERSION=\"${RELEASE_VERSION}\";" >> $(TARGET)
-	${DEF2VAR} ${BUILDDIR}/config/copyright.cf perl REDHAT_COPYRIGHT >> $(TARGET)
-	echo "\$$BUILD_DATE=\"(built `date`)\";" >> $(TARGET)
-	awk -v p=0 "(\$$1 ~ /#END_VERSION_GENERATION/){p = 1} {if(p==1)print}" $(TARGET).pl >> $(TARGET)
-	chmod +x $(TARGET)
-
-install: all
-	if [ ! -d ${sbindir} ]; then \
-		install -d ${sbindir}; \
-	fi
-	install -m755 ${TARGET} ${sbindir}
-
-uninstall:
-	${UNINSTALL} ${TARGET} ${sbindir}
-
-clean:
-	rm -f $(TARGET)
+include ../../../make/fenceperl.mk
diff -Naurd redhat-cluster-suite-2.20070823/fence/agents/brocade/Makefile cluster/fence/agents/brocade/Makefile
--- redhat-cluster-suite-2.20070823/fence/agents/brocade/Makefile	2007-08-23 06:48:19.000000000 +0200
+++ cluster/fence/agents/brocade/Makefile	2007-08-29 06:21:26.000000000 +0200
@@ -15,27 +15,4 @@
 
 TARGET= fence_brocade
 
-all: $(TARGET)
-
-$(TARGET): $(TARGET).pl
-	: > $(TARGET)
-	awk "{print}(\$$1 ~ /#BEGIN_VERSION_GENERATION/){exit 0}" $(TARGET).pl >> $(TARGET)
-	echo "\$$RELEASE_VERSION=\"${RELEASE_VERSION}\";" >> $(TARGET)
-	${DEF2VAR} ${BUILDDIR}/config/copyright.cf perl REDHAT_COPYRIGHT >> $(TARGET)
-	echo "\$$BUILD_DATE=\"(built `date`)\";" >> $(TARGET)
-	awk -v p=0 "(\$$1 ~ /#END_VERSION_GENERATION/){p = 1} {if(p==1)print}" $(TARGET).pl >> $(TARGET)
-	chmod +x $(TARGET)
-
-install: all
-	if [ ! -d ${sbindir} ]; then \
-		install -d ${sbindir}; \
-	fi
-	install -m755 ${TARGET} ${sbindir}
-
-uninstall:
-	${UNINSTALL} ${TARGET} ${sbindir}
-
-clean:
-	rm -f $(TARGET)
-
-
+include ../../../make/fenceperl.mk
diff -Naurd redhat-cluster-suite-2.20070823/fence/agents/bullpap/Makefile cluster/fence/agents/bullpap/Makefile
--- redhat-cluster-suite-2.20070823/fence/agents/bullpap/Makefile	2007-08-23 06:48:19.000000000 +0200
+++ cluster/fence/agents/bullpap/Makefile	2007-08-29 06:21:41.000000000 +0200
@@ -15,27 +15,4 @@
 
 TARGET= fence_bullpap
 
-all: $(TARGET)
-
-$(TARGET): $(TARGET).pl
-	: > $(TARGET)
-	awk "{print}(\$$1 ~ /#BEGIN_VERSION_GENERATION/){exit 0}" $(TARGET).pl >> $(TARGET)
-	echo "\$$RELEASE_VERSION=\"${RELEASE_VERSION}\";" >> $(TARGET)
-	${DEF2VAR} ${BUILDDIR}/config/copyright.cf perl REDHAT_COPYRIGHT >> $(TARGET)
-	echo "\$$BUILD_DATE=\"(built `date`)\";" >> $(TARGET)
-	awk -v p=0 "(\$$1 ~ /#END_VERSION_GENERATION/){p = 1} {if(p==1)print}" $(TARGET).pl >> $(TARGET)
-	chmod +x $(TARGET)
-
-install: all
-	if [ ! -d ${sbindir} ]; then \
-		install -d ${sbindir}; \
-	fi
-	install -m755 ${TARGET} ${sbindir}
-
-uninstall:
-	${UNINSTALL} ${TARGET} ${sbindir}
-
-clean:
-	rm -f $(TARGET)
-
-
+include ../../../make/fenceperl.mk
diff -Naurd redhat-cluster-suite-2.20070823/fence/agents/cpint/Makefile cluster/fence/agents/cpint/Makefile
--- redhat-cluster-suite-2.20070823/fence/agents/cpint/Makefile	2007-08-23 06:48:19.000000000 +0200
+++ cluster/fence/agents/cpint/Makefile	2007-08-29 06:22:47.000000000 +0200
@@ -15,27 +15,4 @@
 
 TARGET= fence_cpint
 
-all: $(TARGET)
-
-$(TARGET): $(TARGET).pl
-	: > $(TARGET)
-	awk "{print}(\$$1 ~ /#BEGIN_VERSION_GENERATION/){exit 0}" $(TARGET).pl >> $(TARGET)
-	echo "\$$RELEASE_VERSION=\"${RELEASE_VERSION}\";" >> $(TARGET)
-	${DEF2VAR} ${BUILDDIR}/config/copyright.cf perl REDHAT_COPYRIGHT >> $(TARGET)
-	echo "\$$BUILD_DATE=\"(built `date`)\";" >> $(TARGET)
-	awk -v p=0 "(\$$1 ~ /#END_VERSION_GENERATION/){p = 1} {if(p==1)print}" $(TARGET).pl >> $(TARGET)
-	chmod +x $(TARGET)
-
-install: all
-	if [ ! -d ${sbindir} ]; then \
-		install -d ${sbindir}; \
-	fi
-	install -m755 ${TARGET} ${sbindir}
-
-uninstall:
-	${UNINSTALL} ${TARGET} ${sbindir}
-
-clean:
-	rm -f $(TARGET)
-
-
+include ../../../make/fenceperl.mk
diff -Naurd redhat-cluster-suite-2.20070823/fence/agents/drac/Makefile cluster/fence/agents/drac/Makefile
--- redhat-cluster-suite-2.20070823/fence/agents/drac/Makefile	2007-08-23 06:48:19.000000000 +0200
+++ cluster/fence/agents/drac/Makefile	2007-08-29 06:08:27.000000000 +0200
@@ -15,25 +15,4 @@
 
 TARGET= fence_drac
 
-all: $(TARGET)
-
-$(TARGET): $(TARGET).pl
-	: > $(TARGET)
-	awk "{print}(\$$1 ~ /#BEGIN_VERSION_GENERATION/){exit 0}" $(TARGET).pl >> $(TARGET)
-	echo "\$$RELEASE_VERSION=\"${RELEASE_VERSION}\";" >> $(TARGET)
-	${DEF2VAR} ${BUILDDIR}/config/copyright.cf perl REDHAT_COPYRIGHT >> $(TARGET)
-	echo "\$$BUILD_DATE=\"(built `date`)\";" >> $(TARGET)
-	awk -v p=0 "(\$$1 ~ /#END_VERSION_GENERATION/){p = 1} {if(p==1)print}" $(TARGET).pl >> $(TARGET)
-	chmod +x $(TARGET)
-
-install: all
-	if [ ! -d ${sbindir} ]; then \
-		install -d ${sbindir}; \
-	fi
-	install -m755 ${TARGET} ${sbindir}
-
-uninstall:
-	${UNINSTALL} ${TARGET} ${sbindir}
-
-clean:
-	rm -f $(TARGET)
+include ../../../make/fenceperl.mk
diff -Naurd redhat-cluster-suite-2.20070823/fence/agents/egenera/Makefile cluster/fence/agents/egenera/Makefile
--- redhat-cluster-suite-2.20070823/fence/agents/egenera/Makefile	2007-08-23 06:48:19.000000000 +0200
+++ cluster/fence/agents/egenera/Makefile	2007-08-29 06:23:22.000000000 +0200
@@ -15,25 +15,4 @@
 
 TARGET= fence_egenera
 
-all: $(TARGET)
-
-$(TARGET): $(TARGET).pl
-	: > $(TARGET)
-	awk "{print}(\$$1 ~ /#BEGIN_VERSION_GENERATION/){exit 0}" $(TARGET).pl >> $(TARGET)
-	echo "\$$RELEASE_VERSION=\"${RELEASE_VERSION}\";" >> $(TARGET)
-	${DEF2VAR} ${BUILDDIR}/config/copyright.cf perl REDHAT_COPYRIGHT >> $(TARGET)
-	echo "\$$BUILD_DATE=\"(built `date`)\";" >> $(TARGET)
-	awk -v p=0 "(\$$1 ~ /#END_VERSION_GENERATION/){p = 1} {if(p==1)print}" $(TARGET).pl >> $(TARGET)
-	chmod +x $(TARGET)
-
-install: all
-	if [ ! -d ${sbindir} ]; then \
-		install -d ${sbindir}; \
-	fi
-	install -m755 ${TARGET} ${sbindir}
-
-uninstall:
-	${UNINSTALL} ${TARGET} ${sbindir}
-
-clean:
-	rm -f $(TARGET)
+include ../../../make/fenceperl.mk
diff -Naurd redhat-cluster-suite-2.20070823/fence/agents/ibmblade/Makefile cluster/fence/agents/ibmblade/Makefile
--- redhat-cluster-suite-2.20070823/fence/agents/ibmblade/Makefile	2007-08-23 06:48:19.000000000 +0200
+++ cluster/fence/agents/ibmblade/Makefile	2007-08-29 06:23:38.000000000 +0200
@@ -15,25 +15,4 @@
 
 TARGET= fence_ibmblade
 
-all: $(TARGET)
-
-$(TARGET): $(TARGET).pl
-	: > $(TARGET)
-	awk "{print}(\$$1 ~ /#BEGIN_VERSION_GENERATION/){exit 0}" $(TARGET).pl >> $(TARGET)
-	echo "\$$RELEASE_VERSION=\"${RELEASE_VERSION}\";" >> $(TARGET)
-	${DEF2VAR} ${BUILDDIR}/config/copyright.cf perl REDHAT_COPYRIGHT >> $(TARGET)
-	echo "\$$BUILD_DATE=\"(built `date`)\";" >> $(TARGET)
-	awk -v p=0 "(\$$1 ~ /#END_VERSION_GENERATION/){p = 1} {if(p==1)print}" $(TARGET).pl >> $(TARGET)
-	chmod +x $(TARGET)
-
-install: all
-	if [ ! -d ${sbindir} ]; then \
-		install -d ${sbindir}; \
-	fi
-	install -m755 ${TARGET} ${sbindir}
-
-uninstall:
-	${UNINSTALL} ${TARGET} ${sbindir}
-
-clean:
-	rm -f $(TARGET)
+include ../../../make/fenceperl.mk
diff -Naurd redhat-cluster-suite-2.20070823/fence/agents/ilo/Makefile cluster/fence/agents/ilo/Makefile
--- redhat-cluster-suite-2.20070823/fence/agents/ilo/Makefile	2007-08-23 06:48:19.000000000 +0200
+++ cluster/fence/agents/ilo/Makefile	2007-08-29 06:23:52.000000000 +0200
@@ -15,25 +15,4 @@
 
 TARGET= fence_ilo
 
-all: $(TARGET)
-
-$(TARGET): $(TARGET).pl
-	: > $(TARGET)
-	awk "{print}(\$$1 ~ /#BEGIN_VERSION_GENERATION/){exit 0}" $(TARGET).pl >> $(TARGET)
-	echo "\$$RELEASE_VERSION=\"${RELEASE_VERSION}\";" >> $(TARGET)
-	${DEF2VAR} ${BUILDDIR}/config/copyright.cf perl REDHAT_COPYRIGHT >> $(TARGET)
-	echo "\$$BUILD_DATE=\"(built `date`)\";" >> $(TARGET)
-	awk -v p=0 "(\$$1 ~ /#END_VERSION_GENERATION/){p = 1} {if(p==1)print}" $(TARGET).pl >> $(TARGET)
-	chmod +x $(TARGET)
-
-install: all
-	if [ ! -d ${sbindir} ]; then \
-		install -d ${sbindir}; \
-	fi
-	install -m755 ${TARGET} ${sbindir}
-
-uninstall:
-	${UNINSTALL} ${TARGET} ${sbindir}
-
-clean:
-	rm -f $(TARGET)
+include ../../../make/fenceperl.mk
diff -Naurd redhat-cluster-suite-2.20070823/fence/agents/mcdata/Makefile cluster/fence/agents/mcdata/Makefile
--- redhat-cluster-suite-2.20070823/fence/agents/mcdata/Makefile	2007-08-23 06:48:19.000000000 +0200
+++ cluster/fence/agents/mcdata/Makefile	2007-08-29 06:24:05.000000000 +0200
@@ -15,27 +15,4 @@
 
 TARGET= fence_mcdata
 
-all: $(TARGET)
-
-$(TARGET): $(TARGET).pl
-	: > $(TARGET)
-	awk "{print}(\$$1 ~ /#BEGIN_VERSION_GENERATION/){exit 0}" $(TARGET).pl >> $(TARGET)
-	echo "\$$RELEASE_VERSION=\"${RELEASE_VERSION}\";" >> $(TARGET)
-	${DEF2VAR} ${BUILDDIR}/config/copyright.cf perl REDHAT_COPYRIGHT >> $(TARGET)
-	echo "\$$BUILD_DATE=\"(built `date`)\";" >> $(TARGET)
-	awk -v p=0 "(\$$1 ~ /#END_VERSION_GENERATION/){p = 1} {if(p==1)print}" $(TARGET).pl >> $(TARGET)
-	chmod +x $(TARGET)
-
-install: all
-	if [ ! -d ${sbindir} ]; then \
-		install -d ${sbindir}; \
-	fi
-	install -m755 ${TARGET} ${sbindir}
-
-uninstall:
-	${UNINSTALL} ${TARGET} ${sbindir}
-
-clean:
-	rm -f $(TARGET)
-
-
+include ../../../make/fenceperl.mk
diff -Naurd redhat-cluster-suite-2.20070823/fence/agents/sanbox2/Makefile cluster/fence/agents/sanbox2/Makefile
--- redhat-cluster-suite-2.20070823/fence/agents/sanbox2/Makefile	2007-08-23 06:48:20.000000000 +0200
+++ cluster/fence/agents/sanbox2/Makefile	2007-08-29 06:24:19.000000000 +0200
@@ -15,27 +15,4 @@
 
 TARGET= fence_sanbox2
 
-all: $(TARGET)
-
-$(TARGET): $(TARGET).pl
-	: > $(TARGET)
-	awk "{print}(\$$1 ~ /#BEGIN_VERSION_GENERATION/){exit 0}" $(TARGET).pl >> $(TARGET)
-	echo "\$$RELEASE_VERSION=\"${RELEASE_VERSION}\";" >> $(TARGET)
-	${DEF2VAR} ${BUILDDIR}/config/copyright.cf perl REDHAT_COPYRIGHT >> $(TARGET)
-	echo "\$$BUILD_DATE=\"(built `date`)\";" >> $(TARGET)
-	awk -v p=0 "(\$$1 ~ /#END_VERSION_GENERATION/){p = 1} {if(p==1)print}" $(TARGET).pl >> $(TARGET)
-	chmod +x $(TARGET)
-
-install: all
-	if [ ! -d ${sbindir} ]; then \
-		install -d ${sbindir}; \
-	fi
-	install -m755 ${TARGET} ${sbindir}
-
-uninstall:
-	${UNINSTALL} ${TARGET} ${sbindir}
-
-clean:
-	rm -f $(TARGET)
-
-
+include ../../../make/fenceperl.mk
diff -Naurd redhat-cluster-suite-2.20070823/fence/agents/vixel/Makefile cluster/fence/agents/vixel/Makefile
--- redhat-cluster-suite-2.20070823/fence/agents/vixel/Makefile	2007-08-23 06:48:20.000000000 +0200
+++ cluster/fence/agents/vixel/Makefile	2007-08-29 06:25:49.000000000 +0200
@@ -15,27 +15,4 @@
 
 TARGET= fence_vixel
 
-all: $(TARGET)
-
-$(TARGET): $(TARGET).pl
-	: > $(TARGET)
-	awk "{print}(\$$1 ~ /#BEGIN_VERSION_GENERATION/){exit 0}" $(TARGET).pl >> $(TARGET)
-	echo "\$$RELEASE_VERSION=\"${RELEASE_VERSION}\";" >> $(TARGET)
-	${DEF2VAR} ${BUILDDIR}/config/copyright.cf perl REDHAT_COPYRIGHT >> $(TARGET)
-	echo "\$$BUILD_DATE=\"(built `date`)\";" >> $(TARGET)
-	awk -v p=0 "(\$$1 ~ /#END_VERSION_GENERATION/){p = 1} {if(p==1)print}" $(TARGET).pl >> $(TARGET)
-	chmod +x $(TARGET)
-
-install: all
-	if [ ! -d ${sbindir} ]; then \
-		install -d ${sbindir}; \
-	fi
-	install -m755 ${TARGET} ${sbindir}
-
-uninstall:
-	${UNINSTALL} ${TARGET} ${sbindir}
-
-clean:
-	rm -f $(TARGET)
-
-
+include ../../../make/fenceperl.mk
diff -Naurd redhat-cluster-suite-2.20070823/fence/agents/vmware/Makefile cluster/fence/agents/vmware/Makefile
--- redhat-cluster-suite-2.20070823/fence/agents/vmware/Makefile	2007-08-23 06:48:20.000000000 +0200
+++ cluster/fence/agents/vmware/Makefile	2007-08-29 06:26:01.000000000 +0200
@@ -15,27 +15,4 @@
 
 TARGET= fence_vmware
 
-all: $(TARGET)
-
-$(TARGET): $(TARGET).pl
-	: > $(TARGET)
-	awk "{print}(\$$1 ~ /#BEGIN_VERSION_GENERATION/){exit 0}" $(TARGET).pl >> $(TARGET)
-	echo "\$$RELEASE_VERSION=\"${RELEASE_VERSION}\";" >> $(TARGET)
-	${DEF2VAR} ${BUILDDIR}/config/copyright.cf perl REDHAT_COPYRIGHT >> $(TARGET)
-	echo "\$$BUILD_DATE=\"(built `date`)\";" >> $(TARGET)
-	awk -v p=0 "(\$$1 ~ /#END_VERSION_GENERATION/){p = 1} {if(p==1)print}" $(TARGET).pl >> $(TARGET)
-	chmod +x $(TARGET)
-
-install: all
-	if [ ! -d ${sbindir} ]; then \
-		install -d ${sbindir}; \
-	fi
-	install -m755 ${TARGET} ${sbindir}
-
-uninstall:
-	${UNINSTALL} ${TARGET} ${sbindir}
-
-clean:
-	rm -f $(TARGET)
-
-
+include ../../../make/fenceperl.mk
diff -Naurd redhat-cluster-suite-2.20070823/fence/agents/wti/Makefile cluster/fence/agents/wti/Makefile
--- redhat-cluster-suite-2.20070823/fence/agents/wti/Makefile	2007-08-23 06:48:20.000000000 +0200
+++ cluster/fence/agents/wti/Makefile	2007-08-29 06:26:11.000000000 +0200
@@ -15,26 +15,4 @@
 
 TARGET= fence_wti
 
-all: $(TARGET)
-
-$(TARGET): $(TARGET).pl
-	: > $(TARGET)
-	awk "{print}(\$$1 ~ /#BEGIN_VERSION_GENERATION/){exit 0}" $(TARGET).pl >> $(TARGET)
-	echo "\$$RELEASE_VERSION=\"${RELEASE_VERSION}\";" >> $(TARGET)
-	${DEF2VAR} ${BUILDDIR}/config/copyright.cf perl REDHAT_COPYRIGHT >> $(TARGET)
-	echo "\$$BUILD_DATE=\"(built `date`)\";" >> $(TARGET)
-	awk -v p=0 "(\$$1 ~ /#END_VERSION_GENERATION/){p = 1} {if(p==1)print}" $(TARGET).pl >> $(TARGET)
-	chmod +x $(TARGET)
-
-install: all
-	if [ ! -d ${sbindir} ]; then \
-		install -d ${sbindir}; \
-	fi
-	install -m755 ${TARGET} ${sbindir}
-
-uninstall:
-	${UNINSTALL} ${TARGET} ${sbindir}
-
-clean:
-	rm -f $(TARGET)
-
+include ../../../make/fenceperl.mk
diff -Naurd redhat-cluster-suite-2.20070823/fence/agents/xcat/Makefile cluster/fence/agents/xcat/Makefile
--- redhat-cluster-suite-2.20070823/fence/agents/xcat/Makefile	2007-08-23 06:48:20.000000000 +0200
+++ cluster/fence/agents/xcat/Makefile	2007-08-29 06:26:22.000000000 +0200
@@ -15,27 +15,4 @@
 
 TARGET= fence_xcat
 
-all: $(TARGET)
-
-$(TARGET): $(TARGET).pl
-	: > $(TARGET)
-	awk "{print}(\$$1 ~ /#BEGIN_VERSION_GENERATION/){exit 0}" $(TARGET).pl >> $(TARGET)
-	echo "\$$RELEASE_VERSION=\"${RELEASE_VERSION}\";" >> $(TARGET)
-	${DEF2VAR} ${BUILDDIR}/config/copyright.cf perl REDHAT_COPYRIGHT >> $(TARGET)
-	echo "\$$BUILD_DATE=\"(built `date`)\";" >> $(TARGET)
-	awk -v p=0 "(\$$1 ~ /#END_VERSION_GENERATION/){p = 1} {if(p==1)print}" $(TARGET).pl >> $(TARGET)
-	chmod +x $(TARGET)
-
-install: all
-	if [ ! -d ${sbindir} ]; then \
-		install -d ${sbindir}; \
-	fi
-	install -m755 ${TARGET} ${sbindir}
-
-uninstall:
-	${UNINSTALL} ${TARGET} ${sbindir}
-
-clean:
-	rm -f $(TARGET)
-
-
+include ../../../make/fenceperl.mk
diff -Naurd redhat-cluster-suite-2.20070823/fence/agents/zvm/Makefile cluster/fence/agents/zvm/Makefile
--- redhat-cluster-suite-2.20070823/fence/agents/zvm/Makefile	2007-08-23 06:48:20.000000000 +0200
+++ cluster/fence/agents/zvm/Makefile	2007-08-29 06:26:32.000000000 +0200
@@ -15,27 +15,4 @@
 
 TARGET= fence_zvm
 
-all: $(TARGET)
-
-$(TARGET): $(TARGET).pl
-	: > $(TARGET)
-	awk "{print}(\$$1 ~ /#BEGIN_VERSION_GENERATION/){exit 0}" $(TARGET).pl >> $(TARGET)
-	echo "\$$RELEASE_VERSION=\"${RELEASE_VERSION}\";" >> $(TARGET)
-	${DEF2VAR} ${BUILDDIR}/config/copyright.cf perl REDHAT_COPYRIGHT >> $(TARGET)
-	echo "\$$BUILD_DATE=\"(built `date`)\";" >> $(TARGET)
-	awk -v p=0 "(\$$1 ~ /#END_VERSION_GENERATION/){p = 1} {if(p==1)print}" $(TARGET).pl >> $(TARGET)
-	chmod +x $(TARGET)
-
-install: all
-	if [ ! -d ${sbindir} ]; then \
-		install -d ${sbindir}; \
-	fi
-	install -m755 ${TARGET} ${sbindir}
-
-uninstall:
-	${UNINSTALL} ${TARGET} ${sbindir}
-
-clean:
-	rm -f $(TARGET)
-
-
+include ../../../make/fenceperl.mk
diff -Naurd redhat-cluster-suite-2.20070823/make/fenceperl.mk cluster/make/fenceperl.mk
--- redhat-cluster-suite-2.20070823/make/fenceperl.mk	1970-01-01 01:00:00.000000000 +0100
+++ cluster/make/fenceperl.mk	2007-08-29 05:59:56.000000000 +0200
@@ -0,0 +1,35 @@
+###############################################################################
+###############################################################################
+##
+##  Copyright (C) Sistina Software, Inc.  1997-2003  All rights reserved.
+##  Copyright (C) 2004 Red Hat, Inc.  All rights reserved.
+##  
+##  This copyrighted material is made available to anyone wishing to use,
+##  modify, copy, or redistribute it subject to the terms and conditions
+##  of the GNU General Public License v.2.
+##
+###############################################################################
+###############################################################################
+
+all: $(TARGET)
+
+$(TARGET): $(TARGET).pl
+	: > $(TARGET)
+	awk "{print}(\$$1 ~ /#BEGIN_VERSION_GENERATION/){exit 0}" $(TARGET).pl >> $(TARGET)
+	echo "\$$RELEASE_VERSION=\"${RELEASE_VERSION}\";" >> $(TARGET)
+	${DEF2VAR} ${BUILDDIR}/config/copyright.cf perl REDHAT_COPYRIGHT >> $(TARGET)
+	echo "\$$BUILD_DATE=\"(built `date`)\";" >> $(TARGET)
+	awk -v p=0 "(\$$1 ~ /#END_VERSION_GENERATION/){p = 1} {if(p==1)print}" $(TARGET).pl >> $(TARGET)
+	chmod +x $(TARGET)
+
+install: all
+	if [ ! -d ${sbindir} ]; then \
+		install -d ${sbindir}; \
+	fi
+	install -m755 ${TARGET} ${sbindir}
+
+uninstall:
+	${UNINSTALL} ${TARGET} ${sbindir}
+
+clean:
+	rm -f $(TARGET)

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]