mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-01-05 13:19:49 +00:00
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>
12 lines
308 B
Makefile
12 lines
308 B
Makefile
all: llmnrd
|
|
|
|
llmnrd: Dockerfile src/*
|
|
docker build -t llmnrd:build .
|
|
docker run --rm llmnrd:build cat /llmnrd.tar.gz > llmnrd.tar.gz
|
|
docker run --rm llmnrd:build cat /llmnrd/llmnrd > llmnrd
|
|
chmod 755 llmnrd
|
|
|
|
clean:
|
|
rm -f llmnrd llmnrd.tar.gz
|
|
docker images -q llmnrd:build | xargs docker rmi -f || true
|