diff options
author | Manuel Messner | 2018-02-20 12:50:15 +0100 |
---|---|---|
committer | Manuel Messner | 2018-02-20 12:59:24 +0100 |
commit | 96ae43d7cc569274488aaf117d793bb504558d51 (patch) | |
tree | 77f0c5973fcec9fe4c404c846425b7c90e9c6d39 /Makefile | |
parent | Makefile: clean_except_last: move bracket style to lisp style (diff) | |
download | packer-templates-96ae43d7cc569274488aaf117d793bb504558d51.tar.gz packer-templates-96ae43d7cc569274488aaf117d793bb504558d51.tar.xz packer-templates-96ae43d7cc569274488aaf117d793bb504558d51.zip |
Makefile: add spacing
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -4,10 +4,10 @@ # * testing target PACKER ?= packer ANSIBLE_DIR ?= ansible-roles - HASHER ?= sha256sum - SHELL := /usr/bin/env bash + + ARCH := $(shell uname -m | sed 's/i686/i386/') BUILDER_QEMU_EXE := qemu-system-$(ARCH) @@ -41,16 +41,19 @@ PROVTARGETS := $(foreach template, $(TEMPLATES), $(foreach flavor, $(FLAVORS), $ BOOTTARGETS := $(foreach template, $(TEMPLATES), $(template)/base/boot) BOOTTARGETS += $(foreach prov, $(PROVTARGETS), $(prov)/boot) + override PACKER_OPTS += -var-file=base.json ifdef DEBUG VERBOSE := 1 override PACKER_OPTS += -debug endif + ifdef WINDOW override PACKER_OPTS += -var='headless=false' endif + # We support parallel Provisioning packer builds. # To ensure data consistency we save the used ansible roles before executing in # its own environment, tagged by the current date & time. @@ -158,14 +161,17 @@ clean_except_last: -not -wholename $(template)/$$(readlink $(template)/$(flavor).latest) \ -print0 | xargs -0 rm -rf);) + clean_bases: @-$(foreach template,$(TEMPLATES),\ test -d $(template) && rm -rf $(template)/base;) + clean_all: @-$(foreach template,$(TEMPLATES),\ test -d $(template) && rm -rf $(template);) + help: @printf "Usage:\n\tmake <template>/<flavor>[/boot]\n" @echo |