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

[Cluster-devel] cluster fence/agents/apc/Makefile fence/agents ...



CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	fabbione sourceware org	2007-08-30 18:41:31

Modified files:
	fence/agents/apc: Makefile 
	fence/agents/rsa: Makefile 
	fence/agents/rsb: Makefile 
Added files:
	make           : fencepy.mk 

Log message:
	Collect common make targets for fence/agents written in python

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/apc/Makefile.diff?cvsroot=cluster&r1=1.6&r2=1.7
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/rsa/Makefile.diff?cvsroot=cluster&r1=1.6&r2=1.7
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/rsb/Makefile.diff?cvsroot=cluster&r1=1.6&r2=1.7
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/make/fencepy.mk.diff?cvsroot=cluster&r1=NONE&r2=1.1

--- cluster/fence/agents/apc/Makefile	2007/08/22 08:58:37	1.6
+++ cluster/fence/agents/apc/Makefile	2007/08/30 18:41:31	1.7
@@ -15,25 +15,4 @@
 
 TARGET= fence_apc
 
-all: $(TARGET)
-
-$(TARGET): $(TARGET).py
-	: > $(TARGET)
-	awk "{print}(\$$1 ~ /#BEGIN_VERSION_GENERATION/){exit 0}" $(TARGET).py >> $(TARGET)
-	echo "RELEASE_VERSION=\"${RELEASE_VERSION}\";" >> $(TARGET)
-	${DEF2VAR} ${BUILDDIR}/config/copyright.cf sh REDHAT_COPYRIGHT >> $(TARGET)
-	echo "BUILD_DATE=\"(built `date`)\";" >> $(TARGET)
-	awk -v p=0 "(\$$1 ~ /#END_VERSION_GENERATION/){p = 1} {if(p==1)print}" $(TARGET).py >> $(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/fencepy.mk
--- cluster/fence/agents/rsa/Makefile	2007/08/22 08:58:40	1.6
+++ cluster/fence/agents/rsa/Makefile	2007/08/30 18:41:31	1.7
@@ -15,25 +15,4 @@
 
 TARGET= fence_rsa
 
-all: $(TARGET)
-
-$(TARGET): $(TARGET).py
-	: > $(TARGET)
-	awk "{print}(\$$1 ~ /#BEGIN_VERSION_GENERATION/){exit 0}" $(TARGET).py >> $(TARGET)
-	echo "RELEASE_VERSION=\"${RELEASE_VERSION}\";" >> $(TARGET)
-	${DEF2VAR} ${BUILDDIR}/config/copyright.cf sh REDHAT_COPYRIGHT >> $(TARGET)
-	echo "BUILD_DATE=\"(built `date`)\";" >> $(TARGET)
-	awk -v p=0 "(\$$1 ~ /#END_VERSION_GENERATION/){p = 1} {if(p==1)print}" $(TARGET).py >> $(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/fencepy.mk
--- cluster/fence/agents/rsb/Makefile	2007/08/22 08:58:40	1.6
+++ cluster/fence/agents/rsb/Makefile	2007/08/30 18:41:31	1.7
@@ -15,25 +15,4 @@
 
 TARGET= fence_rsb
 
-all: $(TARGET)
-
-$(TARGET): $(TARGET).py
-	: > $(TARGET)
-	awk "{print}(\$$1 ~ /#BEGIN_VERSION_GENERATION/){exit 0}" $(TARGET).py >> $(TARGET)
-	echo "RELEASE_VERSION=\"${RELEASE_VERSION}\";" >> $(TARGET)
-	${DEF2VAR} ${BUILDDIR}/config/copyright.cf sh REDHAT_COPYRIGHT >> $(TARGET)
-	echo "BUILD_DATE=\"(built `date`)\";" >> $(TARGET)
-	awk -v p=0 "(\$$1 ~ /#END_VERSION_GENERATION/){p = 1} {if(p==1)print}" $(TARGET).py >> $(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/fencepy.mk
/cvs/cluster/cluster/make/fencepy.mk,v  -->  standard output
revision 1.1
--- cluster/make/fencepy.mk
+++ -	2007-08-30 18:41:32.234604000 +0000
@@ -0,0 +1,22 @@
+all: $(TARGET)
+
+$(TARGET):
+	: > $(TARGET)
+	awk "{print}(\$$1 ~ /#BEGIN_VERSION_GENERATION/){exit 0}" $(TARGET).py >> $(TARGET)
+	echo "RELEASE_VERSION=\"${RELEASE_VERSION}\";" >> $(TARGET)
+	${DEF2VAR} ${BUILDDIR}/config/copyright.cf sh REDHAT_COPYRIGHT >> $(TARGET)
+	echo "BUILD_DATE=\"(built `date`)\";" >> $(TARGET)
+	awk -v p=0 "(\$$1 ~ /#END_VERSION_GENERATION/){p = 1} {if(p==1)print}" $(TARGET).py >> $(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]