aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 13 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index b7408f1b..236d7348 100644
--- a/Makefile
+++ b/Makefile
@@ -12,11 +12,21 @@
12include config.mk 12include config.mk
13 13
14all: locale template 14all: 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.
19locale/messages.pot: *.j2 common/*.j2.inc 29locale/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
52run: all 62run: 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:
68clean: 78clean:
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 *~ \.*~ \#*\#