Files
linuxkit/alpine/packages/gummiboot/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

12 lines
379 B
Makefile

all: linuxx64.efi.stub
linuxx64.efi.stub: Dockerfile gummiboot/*
docker build -t gummiboot:build .
docker run --rm gummiboot:build cat /gummiboot.tar.gz > gummiboot.tar.gz
docker run --rm gummiboot:build \
cat /gummiboot/linuxx64.efi.stub > linuxx64.efi.stub
clean:
rm -f linuxx64.efi.stub gummiboot.tar.gz
docker images -q gummiboot:build | xargs docker rmi -f || true