diff options
author | ng0 <ng0@taler.net> | 2019-12-11 11:21:48 +0000 |
---|---|---|
committer | ng0 <ng0@taler.net> | 2019-12-11 11:21:48 +0000 |
commit | fcb8a94a1b82f84f5453df0e4ab740bff5f3b610 (patch) | |
tree | d297a821773a0577916e706daed2d986272e8889 /Makefile | |
parent | ca901e4b99a037553a5afe1beeb50255aeecb27c (diff) | |
download | www-fcb8a94a1b82f84f5453df0e4ab740bff5f3b610.tar.gz www-fcb8a94a1b82f84f5453df0e4ab740bff5f3b610.tar.bz2 www-fcb8a94a1b82f84f5453df0e4ab740bff5f3b610.zip |
finally merge new layout
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 85 |
1 files changed, 0 insertions, 85 deletions
diff --git a/Makefile b/Makefile deleted file mode 100644 index 309d899b..00000000 --- a/Makefile +++ /dev/null @@ -1,85 +0,0 @@ -# Makefile for NetBSD make (portable version: "bmake"), -# GNU make will find 'GNUmakefile' first and use that file instead. -# This file is in the public domain. -# -# I keep and maintain this file for personal use, it is faster than -# the gmake approach. - -.include "config.mk" - -DESTDIR=$(prefix) - -_LOCALELIST= en de fr it es ru pt -_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 -# TypeScript logic in web-common. -all: locale template - cd web-common && $(tsc) - $(sh) make_sitemap.sh -.for _lang in ${_LOCALELIST} - $(cp) robots.txt rendered/${_lang} - $(cp) favicon.ico rendered/${_lang} - $(cp) rendered/sitemap.xml rendered/${_lang} -.endfor -.for _dir in ${_DIRLIST} - $(cp) -R ${_dir} rendered/ -.endfor - $(cp) styles.css rendered/ - -# Extract translateable strings from jinja2 templates. -locale/messages.pot: template/*.j2 common/*.j2 common/*.j2.inc - $(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) -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; \ - fi - -# Compile translation files for use. -locale-compile: -.for _lang in ${_LOCALELIST} - $(pybabel) -q compile -d locale -l ${_lang} --use-fuzzy -.endfor - -# Process everything related to gettext translations. -locale: locale-update locale-compile - -# Run the jinja2 templating engine to expand templates to HTML -# incorporating translations. -template: locale-compile - $(python) ./template.py - -run: -.if defined(browser) && !empty(DESTDIR) && !empty(python) - $(browser) http://0.0.0.0:8000 & - $(python) -m http.server -.endif - -install: - $(mkdir) -p $(prefix)/share/taler-www - $(cp) -R rendered/* $(prefix)/share/taler-www - -uninstall: - $(rm) -rf $(prefix)/share/taler-www - -submodules/init: - $(git) submodule update --init --recursive - -submodules/update: - $(git) submodule update --recursive --remote - -CLEANFILES+= *.pyc *~ \.*~ *.core - -.include <bsd.prog.mk> |