summaryrefslogtreecommitdiff
path: root/app/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'app/Makefile')
-rw-r--r--app/Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/app/Makefile b/app/Makefile
new file mode 100644
index 0000000..f246e69
--- /dev/null
+++ b/app/Makefile
@@ -0,0 +1,21 @@
+export STATUS_DB_DRIVER:=sqlite3
+export STATUS_DB_CREDENTIALS:=../db/status.db
+
+all: kill build run
+
+clean:
+ @echo "Removing sqlite3 database..."
+ @rm $$STATUS_DB_CREDENTIALS
+ @echo "Removing binary..."
+ @rm statuspage
+ @echo "Done"
+
+build:
+ go build -o statuspage
+
+run:
+ ./statuspage &
+
+kill:
+ @echo "Killing running instances..."
+ @pkill statuspage || true