From ae48f6aab65707e1c7f28da3120aad00a5897dfd Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Mon, 3 Jun 2019 07:41:43 +0000 Subject: [PATCH] projects-dir.mk: Ditch auto-detection of interactive use PS1 isn't set if make is run interactively, which is why auto-detection of interactive use doesn't work. Ditch that and introduce the INTERACTIVE variable, which can be passed as INTERACTIVE=[y|n]. Default value als of now is "n". Signed-off-by: Jan Lindemann --- make/projects-dir.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/make/projects-dir.mk b/make/projects-dir.mk index 58e8c1c0..9a1418de 100644 --- a/make/projects-dir.mk +++ b/make/projects-dir.mk @@ -98,7 +98,8 @@ ifneq ($(EXCLUDE_FROM_BUILD),) endif # non-interactive mode -ifeq ($(shell echo $$PS1),) +INTERACTIVE ?= n +ifneq ($(INTERACTIVE),y) DASH_Y := -y endif