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

[Cluster-devel] cluster/fence/agents/scsi Makefile



CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	rohara 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)


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