Code

Use $(RM) in Makefiles instead of 'rm -f'
[git.git] / templates / Makefile
index 81bd86ccf3949afe8d2381f4ed2fcceb0439d698..6f4dbd362fffdd85570c2223ad7d98015e7970ae 100644 (file)
@@ -1,13 +1,14 @@
 # make and install sample templates
 
-ifdef QUIET_MAKE
+ifndef V
        QUIET = @
 endif
 
 INSTALL ?= install
 TAR ?= tar
+RM ?= rm -f
 prefix ?= $(HOME)
-template_dir ?= $(prefix)/share/git-core/templates/
+template_dir ?= $(prefix)/share/git-core/templates
 # DESTDIR=
 
 # Shell quote (do not use $(call) to accommodate ancient setups);
@@ -42,7 +43,7 @@ custom:
        $(QUIET): no custom templates yet
 
 clean:
-       rm -rf blt boilerplates.made
+       $(RM) -r blt boilerplates.made
 
 install: all
        $(INSTALL) -d -m755 '$(DESTDIR_SQ)$(template_dir_SQ)'