diff options
| author | Horus3 | 2015-02-19 13:30:54 +0100 |
|---|---|---|
| committer | Horus3 | 2015-02-19 13:30:54 +0100 |
| commit | 02e6a8b9ae3596ee1c405cdd1541c5cc59b50e3a (patch) | |
| tree | 157a800cc381e78bb03b8868417db8fe12ca8239 /app/Makefile | |
| parent | d9749f16e15739c7652b05af391af9e59e2307d6 (diff) | |
| download | statuspage-02e6a8b9ae3596ee1c405cdd1541c5cc59b50e3a.tar.gz | |
Static file handling and autoimport the db-driver from Makefile.
Diffstat (limited to 'app/Makefile')
| -rw-r--r-- | app/Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/Makefile b/app/Makefile index f246e69..120635a 100644 --- a/app/Makefile +++ b/app/Makefile @@ -1,9 +1,12 @@ export STATUS_DB_DRIVER:=sqlite3 export STATUS_DB_CREDENTIALS:=../db/status.db +export STATUS_DB_IMPORT_DRIVER:=github.com/mattn/go-sqlite3 all: kill build run clean: + @echo "Removing import file..." + @rm import.go || true @echo "Removing sqlite3 database..." @rm $$STATUS_DB_CREDENTIALS @echo "Removing binary..." @@ -11,6 +14,8 @@ clean: @echo "Done" build: + @echo "package main" > import.go + @echo "import (_ \"$$STATUS_DB_IMPORT_DRIVER\")" >> import.go go build -o statuspage run: |
