# win32 build system: nmake clean fail

- Thread: https://externals.io/message/7421
- Original archive: https://news-web.php.net/php.internals/7421
- Started by Eric Colinet on 2004-01-30T14:56:24+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #7421 — Eric Colinet — 2004-01-30T14:56:24+00:00

URL: https://externals.io/message/7421#7421

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
