summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 89e705ddf..0404fc0ee 100644
--- a/Makefile
+++ b/Makefile
@@ -7,16 +7,22 @@ SOURCES=$(shell find cmd/ pkg/ vendor/ -name '*.go')
DEPLOY_PATH=cri-containerd-staging/gvisor-containerd-shim
VERSION=$(shell git rev-parse HEAD)
+all: bin/gvisor-containerd-shim bin/containerd-shim-runsc-v1
+
bin/gvisor-containerd-shim: $(SOURCES)
CGO_ENABLED=0 go build ${GO_BUILD_FLAGS} -o bin/gvisor-containerd-shim ${SHIM_GO_LDFLAGS} ${GO_TAGS} ./cmd/gvisor-containerd-shim
+bin/containerd-shim-runsc-v1: $(SOURCES)
+ CGO_ENABLED=0 go build ${GO_BUILD_FLAGS} -o bin/containerd-shim-runsc-v1 ${SHIM_GO_LDFLAGS} ${GO_TAGS} ./cmd/containerd-shim-runsc-v1
install: bin/gvisor-containerd-shim
mkdir -p $(DESTDIR)/bin
install bin/gvisor-containerd-shim $(DESTDIR)/bin
+ install bin/containerd-shim-runsc-v1 $(DESTDIR)/bin
uninstall:
rm -f $(DESTDIR)/bin/gvisor-containerd-shim
+ rm -f $(DESTDIR)/bin/containerd-shim-runsc-v1
clean:
rm -rf bin/*