Mercurial > gemma
changeset 1850:6840401ec6a6
client: translations: (minor) improve Makefile
* Make behaviour consistent for two occasions to have code that can
more easily understood.
* Add ignorance of error message when searching for JS files.
* Use `$(OUTPUT_DIR)` without `./` prefix everywhere.
author | Bernhard Reiter <bernhard@intevation.de> |
---|---|
date | Thu, 17 Jan 2019 09:59:00 +0100 |
parents | aabde3279947 |
children | d70bd8860b65 |
files | client/Makefile |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/client/Makefile Thu Jan 17 09:48:21 2019 +0100 +++ b/client/Makefile Thu Jan 17 09:59:00 2019 +0100 @@ -26,7 +26,7 @@ LOCALE_FILES ?= $(patsubst %,$(OUTPUT_DIR)/locale/%/LC_MESSAGES/app.po,$(LOCALES)) GETTEXT_HTML_SOURCES = $(shell find $(OUTPUT_DIR) -name '*.vue' -o -name '*.html' 2> /dev/null) -GETTEXT_JS_SOURCES = $(shell find $(OUTPUT_DIR) -name '*.vue' -o -name '*.js') +GETTEXT_JS_SOURCES = $(shell find $(OUTPUT_DIR) -name '*.vue' -o -name '*.js' 2> /dev/null) # Makefile Targets .PHONY: clean makemessages translations all @@ -39,7 +39,7 @@ makemessages: $(TEMPLATE_POT) -translations: ./$(OUTPUT_DIR)/locale/translations.json +translations: $(OUTPUT_DIR)/locale/translations.json # Create a main .pot template, then generate .po files for each available language. # Thanx to Systematic: https://github.com/Polyconseil/systematic/blob/866d5a/mk/main.mk#L167-L183