Use $(RM) in Makefiles instead of 'rm -f'
[gitweb.git] / contrib / emacs / Makefile
index 98aa0aae9b2e9e4a758fa58e7dd1e1adc3214883..5e94d6fcd35f8354a326cdb82e2f7e6b1c26f26b 100644 (file)
@@ -7,6 +7,7 @@ INSTALL ?= install
 INSTALL_ELC = $(INSTALL) -m 644
 prefix ?= $(HOME)
 emacsdir = $(prefix)/share/emacs/site-lisp
+RM ?= rm -f
 
 all: $(ELC)
 
@@ -17,4 +18,4 @@ install: all
 %.elc: %.el
        $(EMACS) -batch -f batch-byte-compile $<
 
-clean:; rm -f $(ELC)
+clean:; $(RM) $(ELC)