summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile27
1 files changed, 11 insertions, 16 deletions
diff --git a/Makefile b/Makefile
index f4638dd..2e8c054 100644
--- a/Makefile
+++ b/Makefile
@@ -8,28 +8,23 @@ 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)
AVAILABLE_BUILDERS += qemu
- BUILDER := qemu
+ DEFAULT_BUILDER := qemu
endif
-ifndef BUILDER
- ifeq ($(shell which virtualbox 2>&1 > /dev/null && echo $$?), 0)
- AVAILABLE_BUILDERS += virtualbox-iso
- BUILDER := virtualbox-iso
+ifeq ($(shell which virtualbox 2>&1 > /dev/null && echo $$?), 0)
+ AVAILABLE_BUILDERS += virtualbox-iso
+ ifndef DEFAULT_BUILDER
+ DEFAULT_BUILDER := virtualbox-iso
endif
endif
-ifndef BUILDER
- ifeq ($(shell which vmplayer 2>&1 > /dev/null && echo $$?), 0)
- AVAILABLE_BUILDERS += vmware-iso
- BUILDER := vmware-iso
+ifeq ($(shell which vmplayer 2>&1 > /dev/null && echo $$?), 0)
+ AVAILABLE_BUILDERS += vmware-iso
+ ifndef DEFAULT_BUILDER
+ DEFAULT_BUILDER := vmware-iso
endif
endif
ifndef BUILDER
- $(error No usable builder found! Please install a hypervisor...)
-endif
-MISSING_BUILDERS = $(filter-out $(AVAILABLE_BUILDERS),$(SUPPORTED_BUILDERS))
-ifneq ($(words $(MISSING_BUILDERS)), 0)
- $(info Builders missing on this system: $(MISSING_BUILDERS))
- $(info If you wish to use these, install the corresponding hypervisor and retry.)
- $(info )
+ $(info # BUILDER not set, using default builder: $(DEFAULT_BUILDER))
+ BUILDER := $(DEFAULT_BUILDER)
endif
##