diff options
Diffstat (limited to 'cri-tools/Makefile')
-rw-r--r-- | cri-tools/Makefile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/cri-tools/Makefile b/cri-tools/Makefile new file mode 100644 index 0000000..0a1f9ce --- /dev/null +++ b/cri-tools/Makefile @@ -0,0 +1,19 @@ +VERSION := "invalid" +GITHUB_BASEURL := "https://github.com/kubernetes-sigs/cri-tools/releases/download" + +.PHONY: clean + +all: i386/crictl amd64/crictl + +%/crictl: crictl-v$(VERSION)-linux-%.tar.gz + mkdir -p $(shell echo $@ | sed 's#/.*##') + tar -C $(shell echo $@ | sed 's#/.*##') -xzf "$<" + +crictl-v$(VERSION)-linux-%.tar.gz: + wget -nc --progress=dot:mega "$(GITHUB_BASEURL)/v$(VERSION)/$(shell echo $@ | sed s/i386/386/)" -O "$@" + sha256sum -c --ignore-missing sha256sums.txt + +clean: + rm -rf i386 + rm -rf amd64 + rm -f crictl-v$(VERSION)-linux-*.tar.gz |