Files
linuxkit/Makefile
Ian Campbell b8a7032161 Add || true to the docker rmi invocations in the clean target
Linux xargs calls the command with no arguments if it gets no inputs, which
`docker rmi` complains about. It provides -r / --no-run-if-empty to prevent
this but unfortunately this isn't supported on OSX.

Ignore errors from `docker rmi` so that `make clean` will keep going and clean
up later stuff.

Signed-off-by: Ian Campbell <ian.campbell@docker.com>
2016-06-08 13:59:47 +01:00

32 lines
719 B
Makefile

all:
$(MAKE) -C alpine/kernel
$(MAKE) -C alpine
xhyve: all
$(MAKE) -C xhyve run
qemu: all
docker build -f Dockerfile.qemu -t mobyqemu:build .
docker run --rm mobyqemu:build
qemu-iso: all
$(MAKE) -C alpine mobylinux.iso
docker build -f Dockerfile.qemuiso -t mobyqemuiso:build .
docker run --rm mobyqemuiso:build
arm:
$(MAKE) -C alpine/kernel arm
$(MAKE) -C alpine arm
qemu-arm: Dockerfile.qemu.armhf arm
docker build -f Dockerfile.qemu.armhf -t mobyarmqemu:build .
docker run --rm mobyarmqemu:build
.PHONY: clean
clean:
$(MAKE) -C alpine clean
$(MAKE) -C xhyve clean
docker images -q mobyqemu:build | xargs docker rmi -f || true
docker images -q justincormack/remora | xargs docker rmi -f || true