blob: 4e09c255621469dc6727021c84157446cb94cccb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
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
|