summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 5292f48b..309d899b 100644
--- a/Makefile
+++ b/Makefile
@@ -14,6 +14,8 @@ _DIRLIST= dist icons papers pdf presentations images
.PHONY: all run locale-compile locale install clean
+.OBJDIR=rendered
+
# Work this into an mk file
# All: build HTML pages in all languages and compile the
@@ -33,21 +35,22 @@ all: locale template
# Extract translateable strings from jinja2 templates.
locale/messages.pot: template/*.j2 common/*.j2 common/*.j2.inc
- $(env) PYTHONPATH="." $(pybabel) extract -F locale/babel.map -o locale/messages.pot .
+ $(env) PYTHONPATH="." $(pybabel) -q extract -F locale/babel.map -o locale/messages.pot .
# Update translation (.po) files with new strings.
locale-update: locale/messages.pot
.for _lang in ${_LOCALELIST}
- $(msgmerge) -U -m --previous locale/${_lang}/LC_MESSAGES/messages.po locale/messages.pot
+ $(msgmerge) -q -U -m --previous locale/${_lang}/LC_MESSAGES/messages.po locale/messages.pot
.endfor
if $(grep) -nA1 '#-#-#-#-#' locale/*/LC_MESSAGES/messages.po; then \
- $(echo) -e "\nERROR: Conflicts encountered in PO files.\n"; exit 1; \
+ $(echo) -e "\nERROR: Conflicts encountered in PO files.\n"; \
+ exit 1; \
fi
# Compile translation files for use.
locale-compile:
.for _lang in ${_LOCALELIST}
- $(pybabel) compile -d locale -l ${_lang} --use-fuzzy
+ $(pybabel) -q compile -d locale -l ${_lang} --use-fuzzy
.endfor
# Process everything related to gettext translations.