Skip to content

Commit

Permalink
contrib/subtree/Makefile: clean up rule for "clean"
Browse files Browse the repository at this point in the history
git:Documentation/Makefile and others establish "RM ?= rm -f" as a
convention for rm calls in clean rules, hence follow this convention
instead of simply forcing clean to use rm.

subproj and mainline no longer need to be removed in clean, as they are
no longer created in git:contrib/subtree by "make test". Hence, remove
the rm call for those folders.

Other makefiles don't remove "*~" files, remove the rm call to prevent
unexpected behaviour in the future. Similarly, clean doesn't remove the
installable file, so rectify this.

Reviewed-by: Jeff King <[email protected]>
Signed-off-by: James Denholm <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
ChemicalRascal authored and gitster committed May 6, 2014
1 parent c7abbb9 commit 602efc4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions contrib/subtree/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ man1dir ?= $(mandir)/man1
-include ../../GIT-VERSION-FILE

# this should be set to a 'standard' bsd-type install program
INSTALL ?= install
INSTALL ?= install
RM ?= rm -f

ASCIIDOC = asciidoc
XMLTO = xmlto
Expand Down Expand Up @@ -60,7 +61,7 @@ test:
$(MAKE) -C t/ test

clean:
rm -f *~ *.xml *.html *.1
rm -rf subproj mainline
$(RM) $(GIT_SUBTREE)
$(RM) *.xml *.html *.1

.PHONY: FORCE

0 comments on commit 602efc4

Please sign in to comment.