From c204be3bf5e722c9e5199cfa84d14357bca72cd0 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 26 May 2011 18:27:15 +0000 Subject: [PATCH] scstadmin/Makefile robustness improvements for the "install" target (backported r3480). git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3482 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scstadmin/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scstadmin/Makefile b/scstadmin/Makefile index 47fed5465..c0a178736 100644 --- a/scstadmin/Makefile +++ b/scstadmin/Makefile @@ -6,9 +6,15 @@ all: 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)