| Ticket UUID: | d80f8cf33b8059a4b2b832e0b01586a6902196a2 | ||
| Title: | tcl/macosx Makefile has fragile `make distclean` | ||
| Type: | Bug | Created on: | 2013-08-03 15:28:16 |
| Submitter: | dgp | Assigned to: | jan.nijtmans |
| Subsystem: | 53. Configuration and Build Tools | Severity: | Important |
| Priority: | 5 Medium | Last modified: | 2026-10-20 14:31:27 |
| Status: | Closed | Closed by: | jan.nijtmans |
| Resolution: | Fixed | Closed on: | 2026-10-20 14:31:27 |
| Version: | 9.1.0 | ||
| Description: | ||||
It seems the `make distclean` target in the tcl/macosx Makefile assumes it is always cleaning up from the results of a complete `make`. When that assumption is not true, it stops with an error and doesn't finish the job. When doing repeated testing where we only `make test-tcl` or similar, this is broken. | ||||
| User Comments: | ||||
serhiy.storchaka added on 2026-10-20 12:44:05:
Still present on main (and the same code is in 9.0 and 8.6): clean-tcl and distclean-tcl in macosx/GNUmakefile always run make -C "${OBJ_DIR}", and distclean does that for both the Development and the Deployment build. So it stops with "No such file or directory" as soon as one of them was never configured. Proposed fix in branch macosx-distclean-partial: the clean rules skip the sub-make when the build directory has no Makefile. Checked with the GNU make logic on Linux (nothing built, and after only a Development build); not tried on macOS. jan.nijtmans added on 2026-10-20 14:31:27:
Merged to [3d871b1598062755|trunk], core-9-0-branch and core-8-6-branch Many Thanks! | ||||
