* [Cluster-devel] cluster fence/agents/apc/Makefile fence/agents ...
@ 2007-08-30 18:41 fabbione
0 siblings, 0 replies; only message in thread
From: fabbione @ 2007-08-30 18:41 UTC (permalink / raw)
To: cluster-devel.redhat.com
CVSROOT: /cvs/cluster
Module name: cluster
Changes by: fabbione at 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)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-08-30 18:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-30 18:41 [Cluster-devel] cluster fence/agents/apc/Makefile fence/agents fabbione
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 NNTP newsgroup(s).