From 8f05a0f950a14ee8efec0bc5322952ed07772ae8 Mon Sep 17 00:00:00 2001 From: Manuel Messner Date: Mon, 12 Feb 2018 14:44:53 +0100 Subject: Makefile: add verbosity flag If VERBOSE is set, then the important variables will be printed. --- Makefile | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'Makefile') 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/boot\n" + @printf "\t<{base,provisioning}_target>/boot\n" # The builds are directories named after the template name clean: -- cgit v1.2.3-55-g7522