]> granicus.if.org Git - php/commitdiff
MFH: Only add 'install-modules' into install targets when there are such
authorfoobar <sniper@php.net>
Thu, 4 Dec 2003 15:59:04 +0000 (15:59 +0000)
committerfoobar <sniper@php.net>
Thu, 4 Dec 2003 15:59:04 +0000 (15:59 +0000)
     modules to install

Makefile.global
acinclude.m4
configure.in

index e2c591ad411e697b0e7a75406e01aff8c2215f3c..5f33f58b1140a20257ebb9f54720667c0da5d2d0 100644 (file)
@@ -38,10 +38,10 @@ install-sapi: $(OVERALL_TARGET)
 
 install-modules: build-modules
        @test -d modules && \
-       $(mkinstalldirs) $(INSTALL_ROOT)$(EXTENSION_DIR) && \
-       echo "Installing shared extensions:     $(INSTALL_ROOT)$(EXTENSION_DIR)/" && \
-       rm -f modules/*.la && \
-       $(INSTALL) modules/* $(INSTALL_ROOT)$(EXTENSION_DIR) >/dev/null 2>&1 || true
+       $(mkinstalldirs) $(INSTALL_ROOT)$(EXTENSION_DIR)
+       @echo "Installing shared extensions:     $(INSTALL_ROOT)$(EXTENSION_DIR)/"
+       @rm -f modules/*.la >/dev/null 2>&1
+       @$(INSTALL) modules/* $(INSTALL_ROOT)$(EXTENSION_DIR)
 
 install-tester:
        @echo "Installing regression tester:     $(INSTALL_ROOT)$(PEAR_INSTALLDIR)/"
index cbc580f22fd2324ed62e7b529aac8da3b0a5e736..d80928a3481eb29dbd8044e88e435cbdd7b846ac 100644 (file)
@@ -1159,6 +1159,7 @@ dnl Basically sets up the link-stage for building module-name
 dnl from object_var in build-dir.
 dnl
 AC_DEFUN([PHP_SHARED_MODULE],[
+  install_modules="install-modules"
   PHP_MODULES="$PHP_MODULES \$(phplibdir)/$1.la"
   PHP_SUBST($2)
   cat >>Makefile.objects<<EOF
index 18990c2ba47b0abfea0a6cece8dc180f71fdba8a..66b5f1005da931659eb7ba4f2f4d7693fc9df404 100644 (file)
@@ -1138,7 +1138,7 @@ INLINE_CFLAGS="$INLINE_CFLAGS $standard_libtool_flag"
 CXXFLAGS="$CXXFLAGS $standard_libtool_flag"
 
 all_targets='$(OVERALL_TARGET) $(PHP_MODULES) $(PHP_CLI_TARGET)'
-install_targets="install-modules $install_pear install-build install-headers install-programs"
+install_targets="$install_modules $install_pear install-build install-headers install-programs"
 
 case $PHP_SAPI in
   cgi)