summaryrefslogtreecommitdiff
path: root/coredns/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'coredns/Makefile')
-rw-r--r--coredns/Makefile20
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