Skip to contentSkip to conversation

cluster/fence/agents/scsi Makefile

Cluster-devel [email protected] 1 participant 1 message Oct 12, 2006

lore
Share & tools
lore
#0 lore raw

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

fence/agents/scsi/Makefile +5 -2
@@ -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)