summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-12-16 17:43:27 -0300
committerJesusaves <cpntb1@ymail.com>2020-12-16 17:43:27 -0300
commitfdbbdcf40f300e38a08bb3b6a4bc809156cb52aa (patch)
treeb6287a50df2bd5c428364d3407feee93b03df839 /Makefile
parenta41444dbd2078b36cfdb5e5dccc2f6b26676c079 (diff)
downloadserver-fdbbdcf40f300e38a08bb3b6a4bc809156cb52aa.tar.gz
server-fdbbdcf40f300e38a08bb3b6a4bc809156cb52aa.tar.bz2
server-fdbbdcf40f300e38a08bb3b6a4bc809156cb52aa.tar.xz
server-fdbbdcf40f300e38a08bb3b6a4bc809156cb52aa.zip
Add back the autotools from the old version
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile29
1 files changed, 29 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..500a9d5
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,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
+