Follow

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.

@liw I thought so too... until I accidentally purged a new unstaged and uncommitted module with "git clean"

Explicit is better than implicit.

Sign in to participate in the conversation
toot.liw.fi

Lars and friends