tbillington / kondo

Cleans dependencies and build artifacts from your projects.
MIT License
1.75k stars 51 forks source link

Makefile support #121

Open luiswirth opened 3 months ago

luiswirth commented 3 months ago

kondo should inspect Makefiles and run their respective clean command (make clean)

tbillington commented 3 months ago

Thanks for opening the issue @LU15W1R7H .

I'm not very well versed in makefiles, is clean more of a common convention ? To my knowledge Makefiles don't have any "built in" commands.

tbillington commented 3 months ago

I have referenced this issue in https://github.com/tbillington/kondo/issues/122 to capture the more broad implications of this change.

luiswirth commented 3 months ago

is clean more of a common convention ?

You could say so, since it really is just another build target and not a new command. But this convention is very widely used. Even the official gnu manual has a page dedicated to it. So I would argue that you can treat it as if it would be a make feature.