diff options
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) |
