--- a/Makefile Thu Jun 02 20:21:30 2016 +0300
+++ b/Makefile Thu Jun 02 22:06:43 2016 +0300
@@ -111,17 +111,17 @@
check-install-comapt:
\
if [ -f ~/.emacs ]; then \
- echo Old style install detected, run '"make upgrade"' first; \
+ echo Old style install detected, run '"$(MAKE) upgrade"' first; \
false; \
fi
\
if [ -f $(emacsdir)/init.el ]; then \
if [ ! -f $(COMPAT_FILE) ]; then \
- echo $(COMPAT_FILE) missing, run '"make upgrade"' first; \
+ echo $(COMPAT_FILE) missing, run '"$(MAKE) upgrade"' first; \
exit 1; \
fi; \
fi
- read ver <$(COMPAT_FILE); if [ "$$ver" -ne $(COMPAT_VER) ]; then echo "*** "Run '"make upgrade"' first" ***"; exit 1; fi
+ read ver <$(COMPAT_FILE); if [ "$$ver" -ne $(COMPAT_VER) ]; then echo "*** "Run '"$(MAKE) upgrade"' first" ***"; exit 1; fi
.PHONY: upgrade
upgrade:
@@ -138,7 +138,7 @@
for ((i=ver+1; i <= $(COMPAT_VER); i++)); do \
$(SHELL) upgrade/$$i.bash $(emacsdir); \
done
- make install
+ $(MAKE) install
.PHONY: install-all
install-all: install