From 8f6996c7393b504bab7db5ad1f1c3dc54cf355aa Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Mon, 11 Jul 2022 03:16:43 +0300 Subject: add Makefile --- Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Makefile 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 -- cgit v1.2.3