From: <bva...@us...> - 2011-05-26 18:27:21
|
Revision: 3482 http://scst.svn.sourceforge.net/scst/?rev=3482&view=rev Author: bvassche Date: 2011-05-26 18:27:15 +0000 (Thu, 26 May 2011) Log Message: ----------- scstadmin/Makefile robustness improvements for the "install" target (backported r3480). Modified Paths: -------------- branches/2.0.0.x/scstadmin/Makefile Modified: branches/2.0.0.x/scstadmin/Makefile =================================================================== --- branches/2.0.0.x/scstadmin/Makefile 2011-05-26 18:27:02 UTC (rev 3481) +++ branches/2.0.0.x/scstadmin/Makefile 2011-05-26 18:27:15 UTC (rev 3482) @@ -6,9 +6,15 @@ cd $(SCSTADMIN_DIR) && $(MAKE) $@ install: + @if ! perl -MExtUtils::MakeMaker -e '' >/dev/null 2>&1; then \ + echo Error: the Perl module ExtUtils::MakeMaker must be installed \ + first; false; fi + @if [ ! -e /usr/lib/lsb/install_initd ]; then \ + echo Error: the lsb-core package must be installed first; false; fi cd $(SCSTADMIN_DIR) && $(MAKE) $@ -/usr/lib/lsb/install_initd scst -/usr/lib/lsb/install_initd qla2x00t + mkdir -m 755 -p $(DESTDIR)$(INITDIR) install -m 755 init.d/scst $(DESTDIR)$(INITDIR) install -m 755 init.d/qla2x00t $(DESTDIR)$(INITDIR) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |