| Summary: | make clean in bsd.obj.mk no longer properly removes *.core and others | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Base System | Reporter: | howardjp <howardjp> | ||||
| Component: | bin | Assignee: | freebsd-bugs (Nobody) <bugs> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Only Me | ||||||
| Priority: | Normal | ||||||
| Version: | 4.0-CURRENT | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
This is a duplicate of bin/13350. My mailer goofed and I resent. Apparently the first worked afterall. State Changed From-To: open->closed Dupicate of PR 13350. |
/usr/src/share/mk/bsd.README describes ``make clean'' as: clean: remove the program, any object files and the files a.out, Errs, errs, mklog, and ${PROG}.core. However, make clean does not remove a.out, Errs, errs, mklog and ${PROG}.core any longer. Fix: Below is a diff which modifies /usr/src/share/mk/bsd.{prog,obj}.mk and adds these files to CLEANFILES, the list of files which should be deleted. I do not know if changes need to make to CLEANDIRS, I suspect not. I tested this are varius targets in /usr/src/bin and it worked every time. Apply this diff to /usr/src/share/mk. Thanks and have a nice day :) How-To-Repeat: cd /usr/src/bin/cat (or anything else) and ``make clean''. See what it lists as files to delete.