Skip to contentSkip to conversation

Use $(MAKE) for recursive make

PATCH Applied Ed Maste 5 participants 5 messages Apr 1, 2015 – Apr 2, 2015 Kbuild

lore
Share & tools
lore

Ed Maste

author
#0 lore raw

PATCH 1/1 Use $(MAKE) for recursive make

On BSDs "make" is typically BSD make, while "gmake" is GNU make.

---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Makefile +2 -2
index 88bce56..ee40397 100644
@@ -331,8 +331,8 @@ distclean: clean
 	rm -rf $$d || exit 1 ; \
         done
 	rm -Rf .sdk
-	if test -f pixman/config.log; then make -C pixman distclean; fi
-	if test -f dtc/version_gen.h; then make $(DTC_MAKE_ARGS) clean; fi
+	if test -f pixman/config.log; then $(MAKE) -C pixman distclean; fi
+	if test -f dtc/version_gen.h; then $(MAKE) $(DTC_MAKE_ARGS) clean; fi
 
 KEYMAPS=da     en-gb  et  fr     fr-ch  is  lt  modifiers  no  pt-br  sv \
 ar      de     en-us  fi  fr-be  hr     it  lv  nl         pl  ru     th \
Signature · 1 line
2.2.2
Reviewed-by on v1 1/1
#1 lore raw

Am 01.04.2015 um 19:58 schrieb Ed Maste:

Quoted 12 lines

On BSDs "make" is typically BSD make, while "gmake" is GNU make.

---
  Makefile | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
Makefile +0 -0
index 88bce56..ee40397 100644

Makefile distclean: clean · line 338

Quoted 10 lines
Makefile +2 -2
@@ -331,8 +331,8 @@ distclean: clean
  	rm -rf $$d || exit 1 ; \
          done
  	rm -Rf .sdk
-	if test -f pixman/config.log; then make -C pixman distclean; fi
-	if test -f dtc/version_gen.h; then make $(DTC_MAKE_ARGS) clean; fi
+	if test -f pixman/config.log; then $(MAKE) -C pixman distclean; fi
+	if test -f dtc/version_gen.h; then $(MAKE) $(DTC_MAKE_ARGS) clean; fi
 
  KEYMAPS=da     en-gb  et  fr     fr-ch  is  lt  modifiers  no  pt-br  sv \
  ar      de     en-us  fi  fr-be  hr     it  lv  nl         pl  ru     th \
Reviewed-by
#2 lore raw
Quoted 8 lines · Stefan Weil

Am 01.04.2015 um 19:58 schrieb Ed Maste:

Quoted 7 lines

On BSDs "make" is typically BSD make, while "gmake" is GNU make.

---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Quoted 18 lines
Quoted 5 lines
Makefile +0 -0
index 88bce56..ee40397 100644

Makefile distclean: clean · line 337

Quoted 9 lines
Makefile +2 -2
@@ -331,8 +331,8 @@ distclean: clean
 	rm -rf $$d || exit 1 ; \
         done
 	rm -Rf .sdk
-	if test -f pixman/config.log; then make -C pixman distclean; fi
-	if test -f dtc/version_gen.h; then make $(DTC_MAKE_ARGS) clean; fi
+	if test -f pixman/config.log; then $(MAKE) -C pixman distclean; fi
+	if test -f dtc/version_gen.h; then $(MAKE) $(DTC_MAKE_ARGS) clean; fi
 KEYMAPS=da     en-gb  et  fr     fr-ch  is  lt  modifiers  no  pt-br  sv \
 ar      de     en-us  fi  fr-be  hr     it  lv  nl         pl  ru     th \

One more occasion below:

	$(INSTALLER): $(SRC_PATH)/qemu.nsi
		make install prefix=${INSTDIR}

But this is already helpful:

#4 lore raw
In reply to Ed Maste
Quoted 13 lines · Ed Maste

On BSDs "make" is typically BSD make, while "gmake" is GNU make.

---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Makefile +0 -0
index 88bce56..ee40397 100644

Makefile distclean: clean · line 338

Quoted 10 lines
Makefile +2 -2
@@ -331,8 +331,8 @@ distclean: clean
 	rm -rf $$d || exit 1 ; \
         done
 	rm -Rf .sdk
-	if test -f pixman/config.log; then make -C pixman distclean; fi
-	if test -f dtc/version_gen.h; then make $(DTC_MAKE_ARGS) clean; fi
+	if test -f pixman/config.log; then $(MAKE) -C pixman distclean; fi
+	if test -f dtc/version_gen.h; then $(MAKE) $(DTC_MAKE_ARGS) clean; fi
 
 KEYMAPS=da     en-gb  et  fr     fr-ch  is  lt  modifiers  no  pt-br  sv \
 ar      de     en-us  fi  fr-be  hr     it  lv  nl         pl  ru     th \

Applied, thanks.

Paolo