From e870a4771d533033e01799da1652361634ca8d67 Mon Sep 17 00:00:00 2001 From: Manuel Messner Date: Mon, 12 Feb 2018 16:43:16 +0100 Subject: Makefile: check_rootpw: refactor --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 25e8a9d..ff85f78 100644 --- a/Makefile +++ b/Makefile @@ -70,7 +70,12 @@ ifdef VERBOSE endif -check_rootpw = $(if $(strip $(ROOTPW)),,$(error No root password is set, set it as ROOTPW in your environment.)) +check_rootpw = $(if $(strip $(ROOTPW)),\ + $(if $1,\ + ,\ + ),\ + $(error No root password is set, set it as ROOTPW in your environment.) \ +) .PHONY: help clean -- cgit v1.2.3-55-g7522