Re: [PATCH 3/3] doc/Makefile: drop doc-diff worktree and temporary files on "make clean"
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Sep 17, 2018, 19:42 UTC
- Message-ID
- <20180917194214.GG140909@aiede.svl.corp.google.com>
- In-Reply-To
- <xmqq36u77w7y.fsf@gitster-ct.c.googlers.com>
Junio C Hamano wrote:
> Jonathan Nieder <jrnieder@gmail.com> writes: >> Eric Sunshine wrote:
Show 17 quoted lines
>>> + '$(SHELL_PATH_SQ)' ./doc-diff --clean >> >> This means I need a copy of git in order to run "make clean". That >> was never required before. It makes bootstrapping difficult --- do we >> really need it? > > Gahh, you are absolutely right. Also "doc-diff --clean", if I am > reading the code correctly, requires us to be in a Git repository, > not a tarball extract. > > Having to have Git installed, or be in a repository, in order to be > able to run an optional "doc-diff" tool is fine. Requiring either > in order to run "make clean" is a different story. > > Thanks for spotting. We can just prefix the line with '-'? Or does > the script badly misbehave (due to lack of CEILING_DIRECTORY) when > run in a tarball extract inside somebody else's repository?
I'd rather that we revert this change altogether. I have nothing against a convenient command to do this kind of non build related cleanup, but it shouldn't be spelled as "make clean".
That said, for my particular use, prefixing with '-' would work okay.
Thanks, Jonathan