forked from GNUsocial/gnu-social
4b5e977a7b
update_pot.sh replaced with update_po_templates.php which can do core, plugins, or all (default). Top-level Makefile added to build .mo files for plugins as well as core. As described on list: http://lists.status.net/pipermail/statusnet-dev/2009-December/002869.html
19 lines
404 B
Makefile
19 lines
404 B
Makefile
# Warning: do not transform tabs to spaces in this file.
|
|
|
|
all : translations
|
|
|
|
core_mo = $(patsubst %.po,%.mo,$(wildcard locale/*/LC_MESSAGES/statusnet.po))
|
|
plugin_mo = $(patsubst %.po,%.mo,$(wildcard plugins/*/locale/*/LC_MESSAGES/*.po))
|
|
|
|
translations : $(core_mo) $(plugin_mo)
|
|
|
|
clean :
|
|
rm -f $(core_mo) $(plugin_mo)
|
|
|
|
updatepo :
|
|
php scripts/update_po_templates.php --all
|
|
|
|
%.mo : %.po
|
|
msgfmt -o $@ $<
|
|
|