summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorng0 <ng0@taler.net>2019-09-02 10:54:27 +0000
committerng0 <ng0@taler.net>2019-09-02 10:54:27 +0000
commitcf9958da7c7a8d8522937d7c4706c7ab2fc5fd73 (patch)
treebb7e353e8493205875ce2b2df538854c8db6ad11 /Makefile
parentbd9bfe737deddf63ae931e1f2990632d0698a952 (diff)
downloadwww-cf9958da7c7a8d8522937d7c4706c7ab2fc5fd73.tar.gz
www-cf9958da7c7a8d8522937d7c4706c7ab2fc5fd73.tar.bz2
www-cf9958da7c7a8d8522937d7c4706c7ab2fc5fd73.zip
Adjust repository layout (resolves #5596), add sitemap.xml generator.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 1600d2c..fd17366 100644
--- a/Makefile
+++ b/Makefile
@@ -12,6 +12,10 @@ include config.mk
# TypeScript logic in web-common.
all: locale template
cd web-common && $(TSC)
+ /bin/sh make_sitemap.sh
+ for x in en de fr it es ru pt ; do cp robots.txt rendered/$$x ; done
+ for x in en de fr it es ru pt ; do cp favicon.ico rendered/$$x ; done
+ for x in en de fr it es ru pt ; do cp rendered/sitemap.xml rendered/$$x ; done
# Extract translateable strings from jinja2 templates.
locale/messages.pot: *.j2 common/*.j2 common/*.j2.inc
@@ -19,7 +23,7 @@ locale/messages.pot: *.j2 common/*.j2 common/*.j2.inc
# Update translation (.po) files with new strings.
locale-update: locale/messages.pot
- msgmerge -U -m --previous locale/en/LC_MESSAGES/messages.po locale/messages.pot
+ msgmerge -U -m --previous locale/en/LC_MESSAGES/messages.po locale/messages.pot
msgmerge -U -m --previous locale/de/LC_MESSAGES/messages.po locale/messages.pot
msgmerge -U -m --previous locale/fr/LC_MESSAGES/messages.po locale/messages.pot
msgmerge -U -m --previous locale/es/LC_MESSAGES/messages.po locale/messages.pot
@@ -54,7 +58,7 @@ run: all
$(PYTHON) -m http.server
clean:
- rm -rf __pycache__
+ rm -rf __pycache__ *.pyc *~ \.*~ \#*\#
rm -rf en/ de/ fr/ it/ es/ ru/
rm -rf rendered/