win32 build system: nmake clean fail

php.internals

Eric COLINET

22 years ago
Hi, currently playing around with the win32 build system, and I found that nmake clean doesn't work (in fact nmake clean-sapi). From Makefile: clean-sapi: @echo Cleaning SAPI @for %D in ($(EXT_TARGETS)) do @del /F /Q $(BUILD_DIR)\%D > NUL @for %D in ($(PECL_TARGETS)) do @del /F /Q $(BUILD_DIR)\%D > NUL @for %D in ($(SAPI_TARGETS)) do @del /F /Q $(BUILD_DIR)\%D > NUL @del /F /Q $(BUILD_DIR)\$(PHPDLL) It fail for EXT_TARGETS and PECL_TARGETS (they are not defined in the Makefile). Commenting this lines solves my problem. My configure line was: cscript /nologo configure.js And error log is: D:\LOCAL\cvs\php\php-src>nmake clean Microsoft (R) Program Maintenance Utility Version 6.00.8168.0 Copyright (C) Microsoft Corp 1988-1998. All rights reserved. Cleaning SAPI NMAKE : fatal error U1077: 'for' : return code '0x77f988f0' Stop. Regards, Eric