diff options
author | Manuel Messner | 2018-02-08 11:49:15 +0100 |
---|---|---|
committer | Manuel Messner | 2018-02-08 11:49:29 +0100 |
commit | 252b6ef32992d4067cd703d97ac7233c12882235 (patch) | |
tree | 59d34002e42f737e4e7355a538df414a01b6590c /Makefile | |
parent | Makefile: indentation... (diff) | |
download | packer-templates-252b6ef32992d4067cd703d97ac7233c12882235.tar.gz packer-templates-252b6ef32992d4067cd703d97ac7233c12882235.tar.xz packer-templates-252b6ef32992d4067cd703d97ac7233c12882235.zip |
Makefile: repair check_rootpw function
https://stackoverflow.com/questions/20389064/using-gnu-make-functions-to-check-if-variables-are-defined
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -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 |