aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2022-07-11 03:16:43 +0300
committerEvgeny Zinoviev <me@ch1p.io>2022-07-11 03:16:43 +0300
commit8f6996c7393b504bab7db5ad1f1c3dc54cf355aa (patch)
tree77cf6b0ba491c4877b101f7778deeefc497d5438
parent264f98101241fa4c6e298ef544ee55eeb8d8cb96 (diff)
add Makefile
-rw-r--r--Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..124162c
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,22 @@
+all:
+ @echo "Supported commands:"
+ @echo
+ @echo " \033[1mmake deploy\033[0m - deploy to production"
+ @echo " \033[1mmake static\033[0m - build static locally"
+ @echo
+
+deploy:
+ ./deploy/deploy.sh
+
+static: build-js build-css static-config
+
+build-js:
+ ./deploy/build_js.sh -i ./htdocs/js -o ./htdocs/dist-js
+
+build-css:
+ ./deploy/build_css.sh -i ./htdocs/scss -o ./htdocs/dist-css
+
+static-config:
+ ./deploy/gen_static_config.php -i ./htdocs > ./config-static.php
+
+.PHONY: all deploy static \ No newline at end of file