From mboxrd@z Thu Jan 1 00:00:00 1970 From: rohara@sourceware.org Date: 9 Jan 2007 19:42:39 -0000 Subject: [Cluster-devel] cluster/fence/agents/scsi Makefile Message-ID: <20070109194239.11589.qmail@sourceware.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit CVSROOT: /cvs/cluster Module name: cluster Branch: RHEL4 Changes by: rohara at sourceware.org 2007-01-09 19:42:38 Added files: fence/agents/scsi: Makefile Log message: fence_scsi Makefile. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/scsi/Makefile.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=NONE&r2=1.9.6.1 /cvs/cluster/cluster/fence/agents/scsi/Makefile,v --> standard output revision 1.9.6.1 --- cluster/fence/agents/scsi/Makefile +++ - 2007-01-09 19:42:39.118575000 +0000 @@ -0,0 +1,55 @@ +############################################################################### +############################################################################### +## +## Copyright (C) 2006 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. +## +############################################################################### +############################################################################### + +SOURCE= fence_scsi.pl +TARGET= fence_scsi +SCRIPT= scsi_reserve + +TEST_SOURCE= fence_scsi_test.pl +TEST_TARGET= fence_scsi_test + +top_srcdir=../.. +include ${top_srcdir}/make/defines.mk + +all: $(TARGET) $(TEST_TARGET) + +fence_scsi: fence_scsi.pl + : > $(TARGET) + awk "{print}(\$$1 ~ /#BEGIN_VERSION_GENERATION/){exit 0}" $(SOURCE) >> $(TARGET) + echo "\$$FENCE_RELEASE_NAME=\"${RELEASE}\";" >> $(TARGET) + ${top_srcdir}/scripts/define2var ${top_srcdir}/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}" $(SOURCE) >> $(TARGET) + chmod +x $(TARGET) + +fence_scsi_test: fence_scsi_test.pl + : > $(TEST_TARGET) + awk "{print}(\$$1 ~ /#BEGIN_VERSION_GENERATION/){exit 0}" $(TEST_SOURCE) >> $(TEST_TARGET) + echo "\$$FENCE_RELEASE_NAME=\"${RELEASE}\";" >> $(TEST_TARGET) + ${top_srcdir}/scripts/define2var ${top_srcdir}/config/copyright.cf perl REDHAT_COPYRIGHT >> $(TEST_TARGET) + echo "\$$BUILD_DATE=\"(built `date`)\";" >> $(TEST_TARGET) + awk -v p=0 "(\$$1 ~ /#END_VERSION_GENERATION/){p = 1} {if(p==1)print}" $(TEST_SOURCE) >> $(TEST_TARGET) + chmod +x $(TEST_TARGET) + +install: all + if [ ! -d ${sbindir} ]; then \ + install -d ${sbindir}; \ + fi + install -m755 ${TARGET} ${sbindir} + install -m755 ${TEST_TARGET} ${sbindir} + if [ ! -d ${initdir} ]; then \ + install -d ${initdir}; \ + fi + install -m755 ${SCRIPT} ${initdir} + +clean: + rm -f $(TARGET) $($TEST_TARGET)