blob: 81340ab166b2a4440ac9b78ac9bf0505c945073c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
VERSION := "invalid"
GITHUB_BASEURL := "https://github.com/cyberark/kubeletctl/releases/download"
.PHONY: clean
all: i386/kubeletctl amd64/kubeletctl arm64/kubeletctl
%/kubeletctl: kubeletctl_linux_%-$(VERSION)
mkdir -p $(shell echo $@ | sed 's#/.*##')
cp $< $@
kubeletctl_linux_%-$(VERSION):
wget -nc --progress=dot:mega "$(GITHUB_BASEURL)/v$(VERSION)/$(shell echo $@ | sed s/i386/386/ | sed s/-$(VERSION)//)" -O "$@"
sha256sum -c --ignore-missing sha256sums.txt
clean:
rm -rf i386
rm -rf amd64
rm -rf arm64
rm -f kubeletctl_linux_*-$(VERSION)
|