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