[PATCH] Clean up generated files with 'nmake clean'
[email protected] (Grant Croker)
| Newsgroups | php.internals.win |
|---|---|
| Organization | Ingres Corp |
| Message-ID | <[email protected]> |
Hello,
This morning I needed to manually clean up the generated zend files
because I had an incompatible flex from Cygwin installed. After
installing flex-2.5.4 and running through; buildconf, configure, nmake
clean and nmake, the build still failed. It would appear that
win32\build\Makefile does not clean up the generated zend files so that
they can be re-built from scratch. Attached is a patch for PHP 5.3 that
deletes all the files created in the generated_files section of the
Makefile.
regards
grant
--
Grant Croker - Ingres PHP and Ruby maintainer
http://blogs.planetingres.org/grant
"I meant," said Ipslore bitterly, "what is there in this world that truly makes living worthwhile?"
Death thought about it.
"Cats," he said eventually. "Cats are nice."
-- Terry Pratchett, Sourcery
clean_generated_files.patch
(text/x-patch, 884 B)
Index: win32/build/Makefile =================================================================== RCS file: /repository/php-src/win32/build/Makefile,v retrieving revision 1.35.2.1.2.6.2.10 diff -u -w -r1.35.2.1.2.6.2.10 Makefile --- win32/build/Makefile 21 Nov 2008 14:18:27 -0000 1.35.2.1.2.6.2.10 +++ win32/build/Makefile 26 Mar 2009 16:01:10 -0000 @@ -111,6 +111,8 @@ @echo Cleaning standard build dirs @for %D in (_x $(BUILD_DIRS_SUB)) do @if exist %D @rd /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 + -@del /F /Q Zend\zend_ini_parser.c Zend\zend_language_parser.c Zend\zend_ini_scanner.c Zend\zend_language_scanner.c $(PHPDEF) $(MCFILE) + test: <<test_suite_uses_lame_env_vars.bat