From 5a48fa04a8d9eb7dd60acd7dd183a1e7950644ab Mon Sep 17 00:00:00 2001 From: Manuel Messner Date: Wed, 7 Feb 2018 15:21:18 +0100 Subject: Makefile: find provisioning flavors dynamically. This patch changes the way provisioning flavors are defined. In the past they were defined statically. Now there's a glob over all yaml files in $ANSIBLE_DIR which match a certain pattern. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 5cdc861..789dcbf 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ PACKER=packer ANSIBLE_DIR=ansible-roles # the "provisioning" flavor, expects a 'setup-.yml' playbook # in the 'ansible-roles' submodule! This will likely change... -FLAVORS = bwlp +FLAVORS := $(patsubst $(ANSIBLE_DIR)/setup-%.yml,%, $(wildcard $(ANSIBLE_DIR)/setup-*.yml)) SUPPORTED_BUILDERS = qemu virtualbox-iso vmware-iso # check which hypervisors are available ifeq ($(shell which qemu-system-$(shell uname -m | sed 's/i686/i386/') 2>&1 > /dev/null && echo $$?), 0) -- cgit v1.2.3-55-g7522