summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xMakefile.SH9
1 files changed, 5 insertions, 4 deletions
diff --git a/Makefile.SH b/Makefile.SH
index 6411b900b6..b65a7f3fa7 100755
--- a/Makefile.SH
+++ b/Makefile.SH
@@ -1052,19 +1052,20 @@ install: install-all
for name in all notify silent strip verbose; do
flags="--$name";
+ flags=`echo $flags | sed -e 's/--all//'`
if test "X$hostperl" != X; then
$spitshell >>$Makefile <<EOT
install_$name install-$name: \$(INSTALL_DEPENDENCE) installperl all installman
- \$(HOST_PERL) installperl --destdir=\$(DESTDIR) ${flags%--all} \$(INSTALLFLAGS) \$(STRIPFLAGS)
- \$(HOST_PERL) installman --destdir=\$(DESTDIR) ${flags%--all}
+ \$(HOST_PERL) installperl --destdir=\$(DESTDIR) $flags \$(INSTALLFLAGS) \$(STRIPFLAGS)
+ \$(HOST_PERL) installman --destdir=\$(DESTDIR) $flags
EOT
else
$spitshell >>$Makefile <<EOT
install_$name install-$name: \$(INSTALL_DEPENDENCE) installperl all installman
- \$(RUN_PERL) installperl --destdir=\$(DESTDIR) ${flags%--all} \$(INSTALLFLAGS) \$(STRIPFLAGS)
- \$(RUN_PERL) installman --destdir=\$(DESTDIR) ${flags%--all}
+ \$(RUN_PERL) installperl --destdir=\$(DESTDIR) $flags \$(INSTALLFLAGS) \$(STRIPFLAGS)
+ \$(RUN_PERL) installman --destdir=\$(DESTDIR) $flags
EOT
fi