Revert "doc/Makefile: drop doc-diff worktree and temporary files on "make clean""
authorJunio C Hamano <gitster@pobox.com>
Mon, 17 Sep 2018 19:46:18 +0000 (12:46 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 17 Sep 2018 19:46:18 +0000 (12:46 -0700)
This reverts commit 6f924265a0bf6efa677e9a684cebdde958e5ba06, which
started to require that we have an executable git available in order
to say "make clean", which gives us a chicken-and-egg problem.

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.

Reported by Jonathan Nieder <jrnieder@gmail.com>.

Documentation/Makefile
index 623f1a866d43cd99aa27254c819fce013d0e0440..d079d7c73aca1fd91ac18045aab46b2446f43a16 100644 (file)
@@ -331,7 +331,6 @@ clean:
        $(RM) SubmittingPatches.txt
        $(RM) $(cmds_txt) $(mergetools_txt) *.made
        $(RM) manpage-base-url.xsl
-       '$(SHELL_PATH_SQ)' ./doc-diff --clean
 
 $(MAN_HTML): %.html : %.txt asciidoc.conf
        $(QUIET_ASCIIDOC)$(RM) $@+ $@ && \