]> granicus.if.org Git - php/commitdiff
Adding install target that follows the prefix
authorFrank M. Kromann <fmk@php.net>
Tue, 23 Dec 2003 05:43:19 +0000 (05:43 +0000)
committerFrank M. Kromann <fmk@php.net>
Tue, 23 Dec 2003 05:43:19 +0000 (05:43 +0000)
win32/build/Makefile
win32/build/config.w32

index 5b8a68bd7c1b3fff094e57152f9a3a9c7db3a0f8..5f81e5a34b8cecc82e189c4d9b941d44f1876fe3 100644 (file)
@@ -99,3 +99,7 @@ snap: build-snap build-dist
 msi-installer: dist
        $(BUILD_DIR)\php.exe ..\php-installer\build-installer.php "$(BUILD_DIR)" "$(PHPDLL)" "$(SAPI_TARGETS)" "$(EXT_TARGETS)"
 
+install: all
+       @copy $(BUILD_DIR)\*.exe $(PHP_PREFIX) /y >null
+       @copy $(BUILD_DIR)\*.dll $(PHP_PREFIX) /y >null
+       
\ No newline at end of file
index 38c6817759748be107a4140ed2acc51bd9004f3d..0dbd2c272a4acc13762cbb99ee06c43f867cc05f 100644 (file)
@@ -21,7 +21,12 @@ ARG_ENABLE('debug', 'Compile with debugging symbols', "no");
 ARG_ENABLE('zts', 'Thread safety', 'yes');
 
 // Configures the hard-coded installation dir
-ARG_ENABLE('prefix', 'where PHP will be installed', 'C:\\php5');
+if (PHP_DEBUG == "yes") {
+       ARG_ENABLE('prefix', 'where PHP will be installed', 'C:\\php5\\debug');
+} else {
+       ARG_ENABLE('prefix', 'where PHP will be installed', 'C:\\php5');
+}
+DEFINE('PHP_PREFIX', PHP_PREFIX);
 
 DEFINE("BASE_INCLUDES", "/I . /I main /I regex /I Zend /I TSRM ");