]> granicus.if.org Git - php/commitdiff
Use $(INSTALL) rather than cp to install modules.
authorSascha Schumann <sas@php.net>
Mon, 9 Dec 2002 15:32:17 +0000 (15:32 +0000)
committerSascha Schumann <sas@php.net>
Mon, 9 Dec 2002 15:32:17 +0000 (15:32 +0000)
$(INSTALL) will usually unlink the target file first, so that in-memory
instances of the old file don't get simply overwritten (and crash and burn).

Makefile.global

index be922fce90cfe4fc67e840deb2db7cc346b4ab9a..f575a20885435f45636fe494d059f32094876cee 100644 (file)
@@ -37,7 +37,7 @@ install-modules: build-modules
        $(mkinstalldirs) $(INSTALL_ROOT)$(EXTENSION_DIR) && \
        echo "Installing shared extensions:     $(INSTALL_ROOT)$(EXTENSION_DIR)/" && \
        rm -f modules/*.la && \
-       cp modules/* $(INSTALL_ROOT)$(EXTENSION_DIR) >/dev/null 2>&1 || true
+       $(INSTALL) modules/* $(INSTALL_ROOT)$(EXTENSION_DIR) >/dev/null 2>&1 || true
 
 install-tester:
        @echo "Installing regression tester:     $(INSTALL_ROOT)$(PEAR_INSTALLDIR)/"