blob: 500a9d5cda164a19134ea76f98e84fe76be0aa87 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
all:
@echo "Current makes:"
@echo "initdb - initializes a MySQL database"
@echo "sql - Update MySQL database"
@echo "web - Copies all web files to ../htdocs/spheres"
@echo "update - Deploys a new version using make web"
.PHONY: initdb
initdb:
.tools/initdb.sh
make sql
.PHONY: sql
sql:
@echo "Populating database"
@mysql -u username -ppassword database < main.sql
@echo "MySQL is now ready to use"
.PHONY: web
web:
.tools/copy.sh
.PHONY: update
update:
date +%s > version.txt
@echo "New version deployed: "
@cat version.txt
make web
|