| 1 |
SUBDIRS = \ |
| 2 |
en \ |
| 3 |
ja |
| 4 |
|
| 5 |
add: |
| 6 |
test -n "$(LOCALE)" || \ |
| 7 |
(echo "run with LOCALE=\$${NEW_LOCALE}."; \ |
| 8 |
echo "e.g.: make add LOCALE=ja"; \ |
| 9 |
false) |
| 10 |
mkdir -p $(srcdir)/$(LOCALE)/LC_MESSAGES |
| 11 |
sed -e 's,%LOCALE%,$(LOCALE),g' \ |
| 12 |
$(srcdir)/template.locale.Makefile.am \ |
| 13 |
> $(srcdir)/$(LOCALE)/Makefile.am |
| 14 |
sed -e 's,%LOCALE%,$(LOCALE),g' \ |
| 15 |
$(srcdir)/template.locale.LC_MESSAGES.Makefile.am \ |
| 16 |
> $(srcdir)/$(LOCALE)/LC_MESSAGES/Makefile.am |
| 17 |
sed -i'' \ |
| 18 |
-e 's,^SUBDIRS =,SUBDIRS = \\\n\t$(LOCALE),' \ |
| 19 |
$(srcdir)/Makefile.am |
| 20 |
sed -i'' \ |
| 21 |
-e "\,doc/locale/Makefile, \ |
| 22 |
a \ \ doc\/locale\/$(LOCALE)\/Makefile" \ |
| 23 |
-e "\,doc/locale/Makefile, \ |
| 24 |
a \ \ doc\/locale\/$(LOCALE)\/LC_MESSAGES\/Makefile" \ |
| 25 |
$(top_srcdir)/configure.ac |
| 26 |
|
| 27 |
clean-html clean-text clean-markdown init update-po: |
| 28 |
for dir in $(SUBDIRS); do \ |
| 29 |
(cd $${dir} && $(MAKE) $@); \ |
| 30 |
done |