diff options
author | Manuel Messner | 2018-02-12 14:44:53 +0100 |
---|---|---|
committer | Manuel Messner | 2018-02-12 14:44:53 +0100 |
commit | 8f05a0f950a14ee8efec0bc5322952ed07772ae8 (patch) | |
tree | f15b0bb51bad9b10f697db997fc6444c9245da64 /Makefile | |
parent | Makefile: help: remove unneeded parentheses (diff) | |
download | packer-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-- | Makefile | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -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: |