From a984947846c7b83d3151fc4987ca615edcb168ef Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 11 Oct 2020 15:05:16 +0200 Subject: i18n for survey --- Makefile | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3