summaryrefslogtreecommitdiff
path: root/backport/Makefile.build
diff options
context:
space:
mode:
Diffstat (limited to 'backport/Makefile.build')
-rw-r--r--backport/Makefile.build7
1 files changed, 7 insertions, 0 deletions
diff --git a/backport/Makefile.build b/backport/Makefile.build
index a848b37e..9c272b2d 100644
--- a/backport/Makefile.build
+++ b/backport/Makefile.build
@@ -1,4 +1,11 @@
+# detect if make supports --eval
+_EVAL := $(shell make --eval "test:" -f /dev/null test >/dev/null 2>&1 && echo YES || echo NO)
+ifeq ($(_EVAL),YES)
+MAKE=$(BACKPORT_DIR)/scripts/make
+else
-include .config
+endif
+
export
.PHONY: modules