summaryrefslogtreecommitdiff
path: root/prom-alertmanager-gotify-bridge/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'prom-alertmanager-gotify-bridge/Makefile')
-rw-r--r--prom-alertmanager-gotify-bridge/Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/prom-alertmanager-gotify-bridge/Makefile b/prom-alertmanager-gotify-bridge/Makefile
new file mode 100644
index 0000000..c9fc68f
--- /dev/null
+++ b/prom-alertmanager-gotify-bridge/Makefile
@@ -0,0 +1,19 @@
+VERSION := "invalid"
+GITHUB_BASEURL := "https://github.com/DRuggeri/alertmanager_gotify_bridge/releases/download/"
+
+.PHONY: clean
+
+all: i386/alertmanager_gotify_bridge amd64/alertmanager_gotify_bridge
+
+%/alertmanager_gotify_bridge: alertmanager_gotify_bridge-v$(VERSION)-linux-%
+ mkdir -p $(shell echo $@ | sed 's#/.*##')
+ install -m 0755 "$<" "$@"
+
+alertmanager_gotify_bridge-v$(VERSION)-linux-%:
+ 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 i386
+ rm -rf amd64
+ rm -f alertmanager_gotify_bridge-v$(VERSION)-linux-*