summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 1 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 1a91b0b..82993a4 100644
--- a/Makefile
+++ b/Makefile
@@ -48,11 +48,7 @@ ifdef DEBUG
PACKER_OPTS += -var='headless=false'
endif
-define check_rootpw
- ifndef ROOTPW
- $(error No root password is set, set it as ROOTPW in your environment.)
- endif
-endef
+check_rootpw = $(if $(strip $(ROOTPW)),,$(error No root password is set, set it as ROOTPW in your environment.))
.PHONY: all help clean
all: help