scstadmin/Makefile: verify whether the Perl module ExtUtils::MakeMaker has been installed before trying to install scstadmin itself. Based on a suggestion by Hiroyuki Sato.

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3456 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2011-05-16 18:25:33 +00:00
parent b41b5b2f65
commit f82565d129

View File

@@ -6,6 +6,9 @@ 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
cd $(SCSTADMIN_DIR) && $(MAKE) $@
-/usr/lib/lsb/install_initd scst
-/usr/lib/lsb/install_initd qla2x00t