From 02e6a8b9ae3596ee1c405cdd1541c5cc59b50e3a Mon Sep 17 00:00:00 2001 From: Horus3 Date: Thu, 19 Feb 2015 13:30:54 +0100 Subject: Static file handling and autoimport the db-driver from Makefile. --- app/Makefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'app/Makefile') 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: -- cgit v1.2.3