diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-12-16 17:43:27 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-12-16 17:43:27 -0300 |
commit | fdbbdcf40f300e38a08bb3b6a4bc809156cb52aa (patch) | |
tree | b6287a50df2bd5c428364d3407feee93b03df839 /Makefile | |
parent | a41444dbd2078b36cfdb5e5dccc2f6b26676c079 (diff) | |
download | server-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-- | Makefile | 29 |
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 + |