diff options
author | Christian Pointner <equinox@spreadspace.org> | 2024-06-04 21:38:13 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2024-06-04 21:38:17 +0200 |
commit | d8141de3b821e5e696edc2ff980b1394e2793dfe (patch) | |
tree | 84522bdeaa430dc2168abe2753fa5e0ed49814a9 /coredns/Makefile |
Diffstat (limited to 'coredns/Makefile')
-rw-r--r-- | coredns/Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/coredns/Makefile b/coredns/Makefile new file mode 100644 index 0000000..79ea982 --- /dev/null +++ b/coredns/Makefile @@ -0,0 +1,20 @@ +VERSION := "invalid" +GITHUB_RELEASES_BASEURL := "https://github.com/coredns/coredns/releases/download" + + +.PHONY: clean + +all: amd64/coredns arm64/coredns + +%/coredns: coredns_$(VERSION)_linux_%.tgz + mkdir -p $(shell echo $@ | sed 's#/.*##') + tar -C $(shell echo $@ | sed 's#/.*##') -xzf "$<" + +coredns_$(VERSION)_linux_%.tgz: + wget -nc --progress=dot:mega "$(GITHUB_RELEASES_BASEURL)/v$(VERSION)/$@" -O "$@" + sha256sum -c --ignore-missing sha256sums.txt + +clean: + rm -rf amd64 + rm -rf arm64 + rm -f coredns_$(VERSION)_linux_*.tgz |