cluster/fence/agents/scsi Makefile
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.
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)