diff options
author | Manuel Messner | 2018-02-08 16:25:59 +0100 |
---|---|---|
committer | Manuel Messner | 2018-02-08 16:52:00 +0100 |
commit | 50647e94dd944f35afb2460e6fd704b62a3e65bc (patch) | |
tree | 12f953020130165b6fc5ff91d058f2a50cf6f2cc /Makefile | |
parent | [ubuntu-16.04] explicitly use kvm accel for qemu (diff) | |
download | packer-templates-50647e94dd944f35afb2460e6fd704b62a3e65bc.tar.gz packer-templates-50647e94dd944f35afb2460e6fd704b62a3e65bc.tar.xz packer-templates-50647e94dd944f35afb2460e6fd704b62a3e65bc.zip |
Makefile: simplify ifndef+def -> ?=
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -12,15 +12,11 @@ ifeq ($(shell which qemu-system-$(shell uname -m | sed 's/i686/i386/') 2>&1 > /d endif ifeq ($(shell which virtualbox 2>&1 > /dev/null && echo $$?), 0) AVAILABLE_BUILDERS += virtualbox-iso - ifndef DEFAULT_BUILDER - DEFAULT_BUILDER := virtualbox-iso - endif + DEFAULT_BUILDER ?= virtualbox-iso endif ifeq ($(shell which vmplayer 2>&1 > /dev/null && echo $$?), 0) AVAILABLE_BUILDERS += vmware-iso - ifndef DEFAULT_BUILDER - DEFAULT_BUILDER := vmware-iso - endif + DEFAULT_BUILDER ?= vmware-iso endif ifndef BUILDER $(info # BUILDER not set, using default builder: $(DEFAULT_BUILDER)) |