summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..64c916d
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,17 @@
+export STATUS_DB_DRIVER:=sqlite3
+export STATUS_DB_CREDENTIALS:=status.db
+
+all: kill build run
+
+clean:
+ rm status.db
+ rm statuspage
+
+build:
+ go build
+
+run:
+ ./statuspage &
+
+kill:
+ pkill statuspage || true