Summary
Make "make clean" remove chicken-config.h
Metadata
- Id: 764634ea5bdf7e04e53837012462f79b57c440bd
- Trac id: 1755
- Type: defect
- Reporter: mario
- Owner:
- Cc:
- Status: closed
- Component: build system
- Estimated difficulty: easy
- Resolution: fixed
- Priority: minor
- Milestone: someday
- Version: 5.2.0
- Changetime: 2021-08-07 09:16:44 UTC
- Created: 2021-05-16 15:45:58 UTC
- Keywords: make clean, chicken-config.h
Description
The fact that make clean doesn't remove chicken-config.h is a recurrent source of tricky-to-debug installation issues.
This ticket is about making make clean remove chicken-config.h. Since preserving chicken-config.h can be useful for developers, it'd be good to have a variable to indicate that chicken-config.h is to be preserved when processing the clean target (e.g., PRESERVE_CONFIG).
Changes and comments
[2021-05-16 19:57:53 UTC] mario wrote:
Suggestion by Lassi Kortela (received via e-mail):
Or a separate `make devclean` target which preserves the config, and `make clean` would do a devclean plus some more things like removing the config? That way no variables would be required, though it's easy to type `make clean` out of habit since it's a standard target.
[2021-08-06 20:17:13 UTC] mario wrote:
As discussed with Felix on IRC, we agreed that simply making clean remove build configuration files would do the trick, so devclean won't be necessary. With that change, disclean became redundant, as it did what clean now does, so it has been dropped.
Patch has been submitted to chicken-hackers: https://lists.nongnu.org/archive/html/chicken-hackers/2021-08/msg00019.html