I've stopped making Makefile clean targets years ago, and run "git clean -fdxq" instead of "make clean".

So far I'm happy with this.


@liw This works well for a lot of cases, but there's some notable ones where it doesn't:

- It requires Git (so users using e.g. a tarball won't benefit from it); and

- It functions more like a `make maintainer-clean` and may clean more than build files.

@mikegerwitz I'm sure there are use cases for which git clean is not the answer.

I haven't encountered any yet, but that just means my development projects and practices are simple.

Sign in to participate in the conversation
Mike Gerwitz's Mastodon Instance

Mike Gerwitz's personal Mastodon instance