# HG changeset patch # User Oleksandr Gavenko # Date 1464894403 -10800 # Node ID 8ea516ab386541f99c04e48410f7ff128f5d04cc # Parent 9ea890c729d873da879a7479647108a8ba87e126 Fix: Recursive make invocation require '$(MAKE)' usage. diff -r 9ea890c729d8 -r 8ea516ab3865 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