Skip to content

Commit 602efc4

Browse files
ChemicalRascalgitster
authored andcommitted
contrib/subtree/Makefile: clean up rule for "clean"
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]>
1 parent c7abbb9 commit 602efc4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

contrib/subtree/Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ man1dir ?= $(mandir)/man1
1212
-include ../../GIT-VERSION-FILE
1313

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

1718
ASCIIDOC = asciidoc
1819
XMLTO = xmlto
@@ -60,7 +61,7 @@ test:
6061
$(MAKE) -C t/ test
6162

6263
clean:
63-
rm -f *~ *.xml *.html *.1
64-
rm -rf subproj mainline
64+
$(RM) $(GIT_SUBTREE)
65+
$(RM) *.xml *.html *.1
6566

6667
.PHONY: FORCE

0 commit comments

Comments
 (0)