]> git.ipfire.org Git - thirdparty/git.git/commitdiff
doc/Makefile: drop doc-diff worktree and temporary files on "make clean"
authorEric Sunshine <sunshine@sunshineco.com>
Fri, 31 Aug 2018 06:33:18 +0000 (02:33 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 31 Aug 2018 18:49:52 +0000 (11:49 -0700)
doc-diff creates a temporary working tree (git-worktree) and generates a
bunch of temporary files which it does not remove since they act as a
cache to speed up subsequent runs. Although doc-diff's working tree and
generated files are not strictly build products of the Makefile (which,
itself, never runs doc-diff), as a convenience, update "make clean" to
clean up doc-diff's working tree and generated files along with other
development detritus normally removed by "make clean".

Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/Makefile

index d079d7c73aca1fd91ac18045aab46b2446f43a16..623f1a866d43cd99aa27254c819fce013d0e0440 100644 (file)
@@ -331,6 +331,7 @@ 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) $@+ $@ && \