diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -3,17 +3,17 @@ | |||
3 | # All: build HTML pages in all languages and compile the | 3 | # All: build HTML pages in all languages and compile the |
4 | # TypeScript logic in web-common. | 4 | # TypeScript logic in web-common. |
5 | 5 | ||
6 | PYTHONPATH="$PYTHONPATH:$(pwd)" | 6 | include config.mk |
7 | 7 | ||
8 | all: locale template | 8 | all: locale template |
9 | 9 | ||
10 | # Extract translateable strings from jinga2 templates. | 10 | # Extract translateable strings from jinja2 templates. |
11 | locale/messages.pot: *.j2 common/*.j2.inc | 11 | locale/messages.pot: *.j2 common/*.j2.inc |
12 | pybabel extract -F locale/babel.map -o locale/messages.pot . | 12 | pybabel extract -F locale/babel.map -o locale/messages.pot . |
13 | 13 | ||
14 | # Update translation (.po) files with new strings. | 14 | # Update translation (.po) files with new strings. |
15 | locale-update: locale/messages.pot | 15 | locale-update: locale/messages.pot |
16 | msgmerge -U -m --previous locale/en/LC_MESSAGES/messages.po locale/messages.pot | 16 | msgmerge -U -m --previous locale/en/LC_MESSAGES/messages.po locale/messages.pot |
17 | msgmerge -U -m --previous locale/de/LC_MESSAGES/messages.po locale/messages.pot | 17 | msgmerge -U -m --previous locale/de/LC_MESSAGES/messages.po locale/messages.pot |
18 | msgmerge -U -m --previous locale/fr/LC_MESSAGES/messages.po locale/messages.pot | 18 | msgmerge -U -m --previous locale/fr/LC_MESSAGES/messages.po locale/messages.pot |
19 | msgmerge -U -m --previous locale/es/LC_MESSAGES/messages.po locale/messages.pot | 19 | msgmerge -U -m --previous locale/es/LC_MESSAGES/messages.po locale/messages.pot |
@@ -32,9 +32,9 @@ locale-compile: | |||
32 | # Process everything related to gettext translations. | 32 | # Process everything related to gettext translations. |
33 | locale: locale-update locale-compile | 33 | locale: locale-update locale-compile |
34 | 34 | ||
35 | # Run the jinga2 templating engine to expand templates to HTML | 35 | # Run the jinja2 templating engine to expand templates to HTML |
36 | # incorporating translations. | 36 | # incorporating translations. |
37 | template: locale-compile | 37 | template: locale-compile |
38 | ./template.py | 38 | $(PYTHON) ./template.py |
39 | 39 | ||
40 | it: template | 40 | it: template |