VERSION := "invalid" GITHUB_BASEURL := "https://github.com/Mirantis/cri-dockerd/releases/download" .PHONY: clean all: amd64/cri-dockerd arm64/cri-dockerd %/cri-dockerd: cri-dockerd-$(VERSION).%.tgz mkdir -p $(shell echo $@ | sed 's#/.*##') tar -C $(shell echo $@ | sed 's#/.*##') -xzf "$<" --strip-components=1 cri-dockerd-$(VERSION).%.tgz: 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 amd64 rm -rf arm64 rm -f cri-dockerd-$(VERSION).*.tgz