diff options
Diffstat (limited to 'sachet/Makefile')
-rw-r--r-- | sachet/Makefile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/sachet/Makefile b/sachet/Makefile new file mode 100644 index 0000000..a51c702 --- /dev/null +++ b/sachet/Makefile @@ -0,0 +1,19 @@ +VERSION := "invalid" +#GITHUB_BASEURL := "https://github.com/messagebird/sachet/releases/download" +GITHUB_BASEURL := "https://build.spreadspace.org/pub/sachet" + +.PHONY: clean + +all: amd64/sachet + +%/sachet: sachet-$(VERSION).linux-%.tar.gz + mkdir -p $(shell echo $@ | sed 's#/.*##') + tar -C $(shell echo $@ | sed 's#/.*##') -xzf "$<" --strip-components=1 + +sachet-$(VERSION).linux-%.tar.gz: + wget -nc --progress=dot:mega "$(GITHUB_BASEURL)/$(VERSION)/$(shell echo $@ | sed s/i386/386/)" -O "$@" + sha256sum -c --ignore-missing sha256sums.txt + +clean: + rm -rf amd64 + rm -f sachet-$(VERSION).linux-*.tar.gz |