From cee4449f7cc9f10e77daab4109c212212f2788c8 Mon Sep 17 00:00:00 2001
From: Jeremy Soller <jeremy@system76.com>
Date: Sat, 16 Mar 2019 18:54:11 -0600
Subject: [PATCH] Replace make calls with MAKE variable

---
 Makefile | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/Makefile b/Makefile
index 4d120db1..da3f4d01 100644
--- a/Makefile
+++ b/Makefile
@@ -35,7 +35,7 @@ all: | libc libm libpthread
 
 clean:
 	$(CARGO) clean
-	make -C tests clean
+	$(MAKE) -C tests clean
 	rm -rf sysroot
 
 check:
@@ -69,12 +69,12 @@ sysroot: all
 	rm -rf $@
 	rm -rf $@.partial
 	mkdir -p $@.partial
-	make install DESTDIR=$@.partial
+	$(MAKE) install DESTDIR=$@.partial
 	mv $@.partial $@
 	touch $@
 
 test: sysroot
-	make -C tests run
+	$(MAKE) -C tests run
 
 $(BUILD)/release/libc.a: $(BUILD)/release/librelibc.a $(BUILD)/pthreads-emb/libpthread.a $(BUILD)/openlibm/libopenlibm.a
 	echo "create $@" > "$@.mri"
@@ -132,7 +132,7 @@ $(BUILD)/openlibm: openlibm
 	touch $@
 
 $(BUILD)/openlibm/libopenlibm.a: $(BUILD)/openlibm $(BUILD)/include
-	make CC=$(CC) CPPFLAGS="-fno-stack-protector -I$(shell pwd)/include -I $(shell pwd)/$(BUILD)/include" -C $< libopenlibm.a
+	$(MAKE) CC=$(CC) CPPFLAGS="-fno-stack-protector -I$(shell pwd)/include -I $(shell pwd)/$(BUILD)/include" -C $< libopenlibm.a
 
 $(BUILD)/pthreads-emb: pthreads-emb
 	rm -rf $@ $@.partial
@@ -142,4 +142,4 @@ $(BUILD)/pthreads-emb: pthreads-emb
 	touch $@
 
 $(BUILD)/pthreads-emb/libpthread.a: $(BUILD)/pthreads-emb $(BUILD)/include
-	make CC=$(CC) CFLAGS="-fno-stack-protector -I$(shell pwd)/include -I $(shell pwd)/$(BUILD)/include" -C $< libpthread.a
+	$(MAKE) CC=$(CC) CFLAGS="-fno-stack-protector -I$(shell pwd)/include -I $(shell pwd)/$(BUILD)/include" -C $< libpthread.a
-- 
GitLab