diff options
Diffstat (limited to 'app/Makefile')
| -rw-r--r-- | app/Makefile | 21 |
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 |
