mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-01-14 16:22:40 +00:00
23 lines
543 B
Makefile
23 lines
543 B
Makefile
# Tag: bcc7cf6e6fc75e22dacc467043d462e5e9a3dc3f
|
|
GO_COMPILE=mobylinux/go-compile@sha256:f0f952162aff1d8962921da101ac18e21d7bb0cb53a3b36a4209a040da5f00e9
|
|
|
|
all: usr/bin/slirp-proxy sbin/proxy-vsockd
|
|
|
|
DEPS=$(wildcard *.go libproxy/*.go)
|
|
|
|
proxy: $(DEPS) ../vendor/manifest
|
|
tar cf - $(DEPS) -C .. vendor | docker run --rm --net=none --log-driver=none -i $(GO_COMPILE) -o $@ | tar xf -
|
|
|
|
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:
|