summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-10-11 15:05:16 +0200
committerChristian Grothoff <christian@grothoff.org>2020-10-11 15:05:16 +0200
commita984947846c7b83d3151fc4987ca615edcb168ef (patch)
treeb03a1524a55d2a0255f0b9c1e56061bca9358e02 /Makefile
parent1ae0306a3cf2ea27f60b2d205789994d260c2cce (diff)
downloadtaler-merchant-demos-a984947846c7b83d3151fc4987ca615edcb168ef.tar.gz
taler-merchant-demos-a984947846c7b83d3151fc4987ca615edcb168ef.tar.bz2
taler-merchant-demos-a984947846c7b83d3151fc4987ca615edcb168ef.zip
i18n for survey
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 12 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index ad285a9..47e0399 100644
--- a/Makefile
+++ b/Makefile
@@ -8,17 +8,17 @@ all:
.PHONY: install
ifeq ($(install_global), true)
-install: install-global compile sass-build
+install: install-global
else
-install: install-local compile sass-build
+install: install-local
endif
.PHONY: install-global
-install-global:
+install-global: compile sass-build
pip3 install .
.PHONY: install-local
-install-local:
+install-local: compile sass-build
pip3 install . --user
# run testcases
@@ -48,32 +48,40 @@ extract:
# Add new language as follows:
# pybabel init -i locale/messages.pot -d locale/ -l de
+.PHONY: compile
compile: update
pybabel compile -d translations/
+.PHONY: update
update: extract
pybabel update -i translations/messages.pot -d translations/
# SASS/SCSS
+.PHONY: sass-setup
sass-setup:
@echo "This is the initial sass-installation/setup script."
@echo "This setup must run as root, on a machine that has NPM installed!"
@echo "If your password is requested (for escalation), please enter it."
sudo npm install -g sass
+.PHONY: scss-setup
scss-setup: sass-setup
+.PHONY: sass-build
sass-build:
@echo "Warning: If Sass/Scss is not installed, please run \`make sass-setup\` first!"
@echo "This script will only convert files inside /static"
sass talermerchantdemos/static:talermerchantdemos/static
+.PHONY: scss-build
scss-build: sass-build
+.PHONY: sass-autobuild
sass-autobuild:
@echo "Warning: If Sass/Scss is not installed, please run \`make sass-setup\` first!"
@echo "This script will automatically build sass/scss files in the static directory!"
sass --watch talermerchantdemos/static:talermerchantdemos/static
+.PHONY: scss-autobuild
scss-autobuild: sass-autobuild