Makefile.autotools.in: default to same <pkg>_MAKE setting for host and target
authorPeter Korsgaard <jacmet@sunsite.dk>
Tue, 17 May 2011 08:00:01 +0000 (10:00 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Tue, 17 May 2011 08:00:01 +0000 (10:00 +0200)
Similar to how it is done for _SOURCE, _PATCH, _SITE and _SUBDIR.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/Makefile.autotools.in

index 61fcfcfa2ccb57bda7e5b513a3b3413b5546a1d3..917600ca0be95e3a1ab002bc5c82854136ffddbf 100644 (file)
@@ -57,9 +57,16 @@ ifndef $(2)_LIBTOOL_PATCH
  endif
 endif
 
+ifndef $(2)_MAKE
+ ifdef $(3)_MAKE
+  $(2)_MAKE = $($(3)_MAKE)
+ else
+  $(2)_MAKE ?= $(MAKE)
+ endif
+endif
+
 $(2)_CONF_ENV                  ?=
 $(2)_CONF_OPT                  ?=
-$(2)_MAKE                      ?= $(MAKE)
 $(2)_MAKE_ENV                  ?=
 $(2)_MAKE_OPT                  ?=
 $(2)_AUTORECONF                        ?= NO