23 lines
615 B
Makefile
23 lines
615 B
Makefile
.PHONY: all deploy static build-js build-css static-config
|
|
|
|
all:
|
|
@printf "Supported commands:\n"
|
|
@printf "\n"
|
|
@printf " \033[1mmake deploy\033[0m - deploy to production\n"
|
|
@printf " \033[1mmake static\033[0m - build static locally\n"
|
|
@printf "\n"
|
|
|
|
deploy:
|
|
./deploy/deploy.sh
|
|
|
|
static: build-js build-css runtime-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
|
|
|
|
runtime-config:
|
|
./deploy/gen_runtime_config.php --htdocs-dir ./htdocs --commit-hash $$(git rev-parse --short=8 HEAD) > ./config-runtime.php
|