Fix: Recursive make invocation require '$(MAKE)' usage.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Thu, 02 Jun 2016 22:06:43 +0300
changeset 1408 8ea516ab3865
parent 1407 9ea890c729d8
child 1409 d9d85b71260c
Fix: Recursive make invocation require '$(MAKE)' usage.
Makefile
--- 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