mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-12-06 07:27:41 +00:00
This means that multiple builds will not conflict, so we can remove the lock from the CI. Also quieter when no errors. Some still left to do, only done the ones used in build and CI initially. Some of the others will be cleaned up anyway later. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
22 lines
460 B
Makefile
22 lines
460 B
Makefile
all: usr/bin/slirp-proxy sbin/proxy-vsockd
|
|
|
|
DEPS=Dockerfile $(wildcard *.go libproxy/*.go)
|
|
|
|
proxy: $(DEPS) ../vendor/manifest
|
|
BUILD=$$( tar cf - $(DEPS) -C .. vendor | docker build -q - ) && [ -n "$$BUILD" ] && \
|
|
docker run --rm --net=none $$BUILD | tar xf - && \
|
|
docker rmi --no-prune $$BUILD
|
|
|
|
usr/bin/slirp-proxy: proxy
|
|
mkdir -p usr/bin
|
|
cp proxy $@
|
|
|
|
sbin/proxy-vsockd: proxy
|
|
mkdir -p sbin
|
|
cp proxy $@
|
|
|
|
clean:
|
|
rm -rf proxy sbin usr
|
|
|
|
.DELETE_ON_ERROR:
|