diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -12,11 +12,21 @@ | |||
12 | include config.mk | 12 | include config.mk |
13 | 13 | ||
14 | all: locale template | 14 | all: locale template |
15 | # Consider using pax instead of cp. | ||
16 | cp -R dist rendered/ | ||
17 | cp -R static rendered/ | ||
18 | cp rendered/static/robots.txt rendered/robots.txt | ||
19 | cp rendered/static/robots.txt rendered/dist/robots.txt | ||
20 | cp rendered/static/robots.txt rendered/en/robots.txt | ||
21 | cp rendered/static/robots.txt rendered/de/robots.txt | ||
22 | cp rendered/static/robots.txt rendered/es/robots.txt | ||
23 | cp rendered/static/robots.txt rendered/fr/robots.txt | ||
24 | cp rendered/static/robots.txt rendered/it/robots.txt | ||
15 | 25 | ||
16 | # Extract translateable strings from jinja2 templates. | 26 | # Extract translateable strings from jinja2 templates. |
17 | # Because of the local i18nfix extractor module we need | 27 | # Because of the local i18nfix extractor module we need |
18 | # to set the pythonpath before invoking pybabel. | 28 | # to set the pythonpath before invoking pybabel. |
19 | locale/messages.pot: *.j2 common/*.j2.inc | 29 | locale/messages.pot: *.j2 common/*.j2.inc template/*.j2 |
20 | PYTHONPATH=. $(BABEL) -v extract -F locale/babel.map -o locale/messages.pot . | 30 | PYTHONPATH=. $(BABEL) -v extract -F locale/babel.map -o locale/messages.pot . |
21 | 31 | ||
22 | # Update translation (.po) files with new strings. | 32 | # Update translation (.po) files with new strings. |
@@ -51,7 +61,7 @@ current_dir = $(shell pwd) | |||
51 | 61 | ||
52 | run: all | 62 | run: all |
53 | @[ "$(BROWSER)" ] || ( echo "You need to export the environment variable 'BROWSER' to run this."; exit 1 ) | 63 | @[ "$(BROWSER)" ] || ( echo "You need to export the environment variable 'BROWSER' to run this."; exit 1 ) |
54 | $(RUN_BROWSER) $(current_dir)/en/index.html | 64 | $(RUN_BROWSER) $(current_dir)/rendered/en/index.html |
55 | 65 | ||
56 | 66 | ||
57 | # docker-all: Build using a docker image which contains all the needed packages. | 67 | # docker-all: Build using a docker image which contains all the needed packages. |
@@ -68,4 +78,5 @@ docker-all: | |||
68 | clean: | 78 | clean: |
69 | rm -rf __pycache__ | 79 | rm -rf __pycache__ |
70 | rm -rf en/ de/ fr/ it/ es/ ru/ | 80 | rm -rf en/ de/ fr/ it/ es/ ru/ |
81 | rm -rf rendered/ | ||
71 | rm -rf *.pyc *~ \.*~ \#*\# | 82 | rm -rf *.pyc *~ \.*~ \#*\# |