]> granicus.if.org Git - php/commitdiff
- Introducing nmake clean-all
authorSteph Fox <sfox@php.net>
Sat, 3 May 2008 21:12:55 +0000 (21:12 +0000)
committerSteph Fox <sfox@php.net>
Sat, 3 May 2008 21:12:55 +0000 (21:12 +0000)
- This should probably be merged with nmake clean, but I've no way to test the impact on distro builds.

win32/build/Makefile

index 5bb7c3321c163a5723e720875f299bab9e8b6348..987df345455e97885da9ed62df0a018726fb1f4b 100644 (file)
@@ -97,7 +97,7 @@ clean-sapi:
        -@del /F /Q $(BUILD_DIR)\$(PHPDLL)
 
 clean: clean-sapi
-       @echo Cleaning build dirs
+       @echo Cleaning distribution build dirs
        @for %D in (_x $(BUILD_DIRS_SUB)) do @if exist %D @del /F /Q %D\*.* > NUL
        -@del /F /Q $(BUILD_DIR)\*.res $(BUILD_DIR)\*.lib $(BUILD_DIR)\*.ilk $(BUILD_DIR)\*.pdb $(BUILD_DIR)\*.exp $(PHPDEF) $(BUILD_DIR)\php-$(PHP_VERSION_STRING)-Win32.zip $(BUILD_DIR)\pecl-$(PHP_VERSION_STRING)-Win32.zip > NUL
        -rmdir /s /q $(BUILD_DIR)\php-$(PHP_VERSION_STRING)
@@ -106,6 +106,11 @@ clean-pecl:
        @echo Cleaning PECL targets only
        -rmdir /s /q $(BUILD_DIR)\pecl
 
+clean-all:
+       @echo Cleaning standard build dirs
+       @for %D in (_x $(BUILD_DIRS_SUB)) do @if exist %D @rmdir /s /q %D
+       -@del /f /q $(BUILD_DIR)\*.res $(BUILD_DIR)\*.lib $(BUILD_DIR)\*.ilk $(BUILD_DIR)\*.pdb $(BUILD_DIR)\*.exp $(PHPDEF) $(BUILD_DIR)\*.rc $(BUILD_DIR)\*.dbg $(BUILD_DIR)\*.bin $(BUILD_DIR)\php*.dll $(BUILD_DIR)\php*.exe > NUL
+
 test:
        <<test_suite_uses_lame_env_vars.bat
 set TEST_PHP_EXECUTABLE=$(BUILD_DIR)\php.exe