From 473d0e37c7cab1748e324474950bc2ffdd8a3cc8 Mon Sep 17 00:00:00 2001 From: Justin Cormack Date: Mon, 31 Oct 2016 16:04:25 +0000 Subject: [PATCH] improve hyperkit build to do sudo in the right place Signed-off-by: Justin Cormack --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7fd9e51e5..1a3daf1ca 100644 --- a/Makefile +++ b/Makefile @@ -23,9 +23,11 @@ qemu-iso: Dockerfile.qemuiso alpine/mobylinux-bios.iso hyperkit.git: git clone https://github.com/docker/hyperkit.git hyperkit.git -hyperkit: hyperkit.git hyperkit.sh alpine/initrd.img alpine/kernel/x86_64/vmlinuz64 +hyperkit.git/build/com.docker.hyperkit: hyperkit.git cd hyperkit.git && make - sh hyperkit.sh + +hyperkit: hyperkit.sh hyperkit.git/build/com.docker.hyperkit alpine/initrd.img alpine/kernel/x86_64/vmlinuz64 + sudo ./hyperkit.sh test: Dockerfile.test alpine/initrd.img alpine/kernel/x86_64/vmlinuz64 $(MAKE) -C alpine