From mboxrd@z Thu Jan 1 00:00:00 1970 From: rohara@sourceware.org Date: 12 Oct 2006 15:51:54 -0000 Subject: [Cluster-devel] cluster/fence/agents/scsi Makefile Message-ID: <20061012155154.16290.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 Changes by: rohara at sourceware.org 2006-10-12 15:51:53 Modified files: fence/agents/scsi: Makefile Log message: Add scsi_reserve init script to Makefile so that it gets installed. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/scsi/Makefile.diff?cvsroot=cluster&r1=1.2&r2=1.3 --- cluster/fence/agents/scsi/Makefile 2006/08/11 15:18:09 1.2 +++ cluster/fence/agents/scsi/Makefile 2006/10/12 15:51:53 1.3 @@ -12,11 +12,12 @@ SOURCE= fence_scsi.pl TARGET= fence_scsi +SCRIPT= scsi_reserve top_srcdir=../.. include ${top_srcdir}/make/defines.mk -all: $(TARGET) +all: $(TARGET) $(SCRIPT) fence_scsi: fence_scsi.pl : > $(TARGET) @@ -26,12 +27,14 @@ 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) + chmod +x $(SCRIPT) install: all if [ ! -d ${sbindir} ]; then \ install -d ${sbindir}; \ fi install -m755 ${TARGET} ${sbindir} + install -m755 ${SCRIPT} /etc/init.d/ clean: - rm -f $(TARGET) + rm -f $(TARGET) $(SCRIPT)