summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorManuel Messner2018-02-12 14:44:53 +0100
committerManuel Messner2018-02-12 14:44:53 +0100
commit8f05a0f950a14ee8efec0bc5322952ed07772ae8 (patch)
treef15b0bb51bad9b10f697db997fc6444c9245da64 /Makefile
parentMakefile: help: remove unneeded parentheses (diff)
downloadpacker-templates-8f05a0f950a14ee8efec0bc5322952ed07772ae8.tar.gz
packer-templates-8f05a0f950a14ee8efec0bc5322952ed07772ae8.tar.xz
packer-templates-8f05a0f950a14ee8efec0bc5322952ed07772ae8.zip
Makefile: add verbosity flag
If VERBOSE is set, then the important variables will be printed.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 16 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e5fe590..f0c11d6 100644
--- a/Makefile
+++ b/Makefile
@@ -45,6 +45,21 @@ TIMESTAMP := $(shell date "+%Y-%m-%d_%H-%M-%S")
check_rootpw = $(if $(strip $(ROOTPW)),,$(error No root password is set, set it as ROOTPW in your environment.))
+ifdef VERBOSE
+ $(info root password: $(ROOTPW))
+ $(info )
+ $(info packer: executable: $(PACKER))
+ $(info packer: options: $(PACKER_OPTS))
+ $(info )
+ $(info ansible: directory: $(ANSIBLE_DIR))
+ $(info )
+ $(info builder: available: $(AVAILABLE_BUILDERS))
+ $(info builder: chosen: $(BUILDER))
+ $(info )
+ $(info targets: base: $(strip $(BASETARGETS)))
+ $(info targets: boot: $(strip $(BOOTTARGETS)))
+ $(info targets: provision: $(strip $(PROVTARGETS)))
+endif
.PHONY: all help clean
all: help
@@ -108,7 +123,7 @@ help:
@for P in $(PROVTARGETS); do printf "\t%s\n" "$$P"; done
@echo
@echo "Generate boot files targets:"
- @printf "\t<provisioning_target>/boot\n"
+ @printf "\t<{base,provisioning}_target>/boot\n"
# The builds are directories named after the template name
clean: