diff options
| author | Horus3 | 2015-02-21 14:50:00 +0100 |
|---|---|---|
| committer | Horus3 | 2015-02-21 14:50:00 +0100 |
| commit | b58e21a525e7e4aeda3ec51bfcb07390af8be465 (patch) | |
| tree | 9974d885ae2c81052e881e00207677e80d9f6fc7 /app/Makefile | |
| parent | c92989a8fc738094b205094a1bdd458a40c23d9c (diff) | |
| download | statuspage-b58e21a525e7e4aeda3ec51bfcb07390af8be465.tar.gz | |
Index page is now cached.
Diffstat (limited to 'app/Makefile')
| -rw-r--r-- | app/Makefile | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/app/Makefile b/app/Makefile index 06aed05..15da585 100644 --- a/app/Makefile +++ b/app/Makefile @@ -32,6 +32,8 @@ clean: kill @rm $(IMPORT_FILE) || true @echo "Removing sqlite3 database..." @rm $(STATUS_DB_CREDENTIALS) || true + @echo "Removing tar archiv..." + @rm ../$(APP).tar.gz || true @echo "Removing binary..." @rm $(APP) @echo "Done." @@ -68,4 +70,11 @@ mysql: create_import postgresql: create_import @echo "import _ \"github.com/lib/pq\"" >> $(IMPORT_FILE) -database_all: create_import sqlite3 mysql postgresql +database_all: sqlite3 mysql postgresql + @echo "Created import file for all databases." + +pack: + @cd .. && \ + tar czf $(APP).tar.gz app/$(APP) app/env.sh app/Makefile views static db 2>/dev/null && \ + echo "../$(APP).tar.gz is ready." || \ + (echo "Run \"make build\" first." && exit 1) |
