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 <jan@janware.com>
This commit is contained in:
Jan Lindemann 2019-06-03 07:41:43 +00:00
commit ae48f6aab6

View file

@ -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