diff options
author | Christian Pointner <equinox@spreadspace.org> | 2023-04-20 11:15:31 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2023-04-20 11:15:31 +0200 |
commit | 87ede2621a5ff2904c95f9ecbea2c4c009824c78 (patch) | |
tree | f9a984e1df89f37c8d2cd29d637e825be3387204 /k9s/Makefile | |
parent | cri-dockerd: version bump to 0.3.1 (diff) |
add k9s
Diffstat (limited to 'k9s/Makefile')
-rw-r--r-- | k9s/Makefile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/k9s/Makefile b/k9s/Makefile new file mode 100644 index 0000000..3fcbbd2 --- /dev/null +++ b/k9s/Makefile @@ -0,0 +1,19 @@ +VERSION := "invalid" +GITHUB_BASEURL := "https://github.com/derailed/k9s/releases/download" + +.PHONY: clean + +all: amd64/k9s arm64/k9s + +%/k9s: k9s_Linux_%-$(VERSION).tar.gz + mkdir -p $(shell echo $@ | sed 's#/.*##') + tar -C $(shell echo $@ | sed 's#/.*##') -xzf "$<" + +k9s_Linux_%-$(VERSION).tar.gz: + wget -nc --progress=dot:mega "$(GITHUB_BASEURL)/v$(VERSION)/$(shell echo $@ | sed s/-$(VERSION)//)" -O "$@" + sha256sum -c --ignore-missing sha256sums.txt + +clean: + rm -rf amd64 + rm -rf arm64 + rm -f k9s_Linux_*.tar.gz |