Home | History | Annotate | Line # | Download | only in po
      1  1.1  christos ## Makefile for the gettext-tools/examples/po subdirectory of GNU gettext
      2  1.1  christos ## Copyright (C) 1995-1998, 2000-2006 Free Software Foundation, Inc.
      3  1.1  christos ##
      4  1.1  christos ## This program is free software; you can redistribute it and/or modify
      5  1.1  christos ## it under the terms of the GNU General Public License as published by
      6  1.1  christos ## the Free Software Foundation; either version 2, or (at your option)
      7  1.1  christos ## any later version.
      8  1.1  christos ##
      9  1.1  christos ## This program is distributed in the hope that it will be useful,
     10  1.1  christos ## but WITHOUT ANY WARRANTY; without even the implied warranty of
     11  1.1  christos ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     12  1.1  christos ## GNU General Public License for more details.
     13  1.1  christos ##
     14  1.1  christos ## You should have received a copy of the GNU General Public License
     15  1.1  christos ## along with this program; if not, write to the Free Software Foundation,
     16  1.1  christos ## Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
     17  1.1  christos 
     18  1.1  christos ## Process this file with automake to produce Makefile.in.
     19  1.1  christos 
     20  1.1  christos AUTOMAKE_OPTIONS = 1.5 gnits
     21  1.1  christos 
     22  1.1  christos # List of files which contain translatable strings.
     23  1.1  christos POTFILES = \
     24  1.1  christos   hello-c/hello.c \
     25  1.1  christos   hello-c-gnome/hello.c \
     26  1.1  christos   hello-c++/hello.cc \
     27  1.1  christos   hello-c++-qt/hello.cc \
     28  1.1  christos   hello-c++-kde/hello.cc \
     29  1.1  christos   hello-c++-kde/hellowindow.h \
     30  1.1  christos   hello-c++-kde/hellowindow.cc \
     31  1.1  christos   hello-c++-gnome/hello.cc \
     32  1.1  christos   hello-c++-wxwidgets/hello.cc \
     33  1.1  christos   hello-objc/hello.m \
     34  1.1  christos   hello-objc-gnustep/main.m \
     35  1.1  christos   hello-objc-gnustep/AppController.h \
     36  1.1  christos   hello-objc-gnustep/AppController.m \
     37  1.1  christos   hello-objc-gnustep/Hello.h \
     38  1.1  christos   hello-objc-gnustep/Hello.m \
     39  1.1  christos   hello-objc-gnome/hello.m \
     40  1.1  christos   hello-sh/hello.sh \
     41  1.1  christos   hello-python/hello.py.in \
     42  1.1  christos   hello-clisp/hello.lisp.in \
     43  1.1  christos   hello-librep/hello.jl.in \
     44  1.1  christos   hello-guile/hello.scm \
     45  1.1  christos   hello-smalltalk/hello.st.in \
     46  1.1  christos   hello-java/Hello.java \
     47  1.1  christos   hello-java-awt/Hello.java \
     48  1.1  christos   hello-java-swing/Hello.java \
     49  1.1  christos   hello-csharp/hello.cs \
     50  1.1  christos   hello-csharp-forms/hello.cs \
     51  1.1  christos   hello-gawk/hello.awk \
     52  1.1  christos   hello-pascal/hello.pas \
     53  1.1  christos   hello-ycp/hello.ycp \
     54  1.1  christos   hello-tcl/hello.tcl \
     55  1.1  christos   hello-tcl-tk/hello.tcl \
     56  1.1  christos   hello-perl/hello-1.pl.in \
     57  1.1  christos   hello-perl/hello-2.pl.in \
     58  1.1  christos   hello-php/hello.php
     59  1.1  christos 
     60  1.1  christos # List of small POT files.
     61  1.1  christos SMALLPOTS = \
     62  1.1  christos   hello-c.pot \
     63  1.1  christos   hello-c-gnome.pot \
     64  1.1  christos   hello-c++.pot \
     65  1.1  christos   hello-c++-qt.pot \
     66  1.1  christos   hello-c++-kde.pot \
     67  1.1  christos   hello-c++-gnome.pot \
     68  1.1  christos   hello-c++-wxwidgets.pot \
     69  1.1  christos   hello-objc.pot \
     70  1.1  christos   hello-objc-gnustep.pot \
     71  1.1  christos   hello-objc-gnome.pot \
     72  1.1  christos   hello-sh.pot \
     73  1.1  christos   hello-python.pot \
     74  1.1  christos   hello-clisp.pot \
     75  1.1  christos   hello-librep.pot \
     76  1.1  christos   hello-guile.pot \
     77  1.1  christos   hello-smalltalk.pot \
     78  1.1  christos   hello-java.pot \
     79  1.1  christos   hello-java-awt.pot \
     80  1.1  christos   hello-java-swing.pot \
     81  1.1  christos   hello-csharp.pot \
     82  1.1  christos   hello-csharp-forms.pot \
     83  1.1  christos   hello-gawk.pot \
     84  1.1  christos   hello-pascal.pot \
     85  1.1  christos   hello-ycp.pot \
     86  1.1  christos   hello-tcl.pot \
     87  1.1  christos   hello-tcl-tk.pot \
     88  1.1  christos   hello-perl.pot \
     89  1.1  christos   hello-php.pot
     90  1.1  christos 
     91  1.1  christos # This is a synthetic domain name.
     92  1.1  christos DOMAIN = gettext-examples
     93  1.1  christos 
     94  1.1  christos # This is the copyright holder that gets inserted into the header of the
     95  1.1  christos # $(DOMAIN).pot file.  Set this to the copyright holder of the surrounding
     96  1.1  christos # package.  (Note that the msgstr strings, extracted from the package's
     97  1.1  christos # sources, belong to the copyright holder of the package.)  Translators are
     98  1.1  christos # expected to transfer the copyright for their translations to this person
     99  1.1  christos # or entity, or to disclaim their copyright.  The empty string stands for
    100  1.1  christos # the public domain; in this case the translators are expected to disclaim
    101  1.1  christos # their copyright.
    102  1.1  christos COPYRIGHT_HOLDER = Yoyodyne, Inc.
    103  1.1  christos 
    104  1.1  christos # This is the email address or URL to which the translators shall report
    105  1.1  christos # bugs in the untranslated strings:
    106  1.1  christos # - Strings which are not entire sentences, see the maintainer guidelines
    107  1.1  christos #   in the GNU gettext documentation, section 'Preparing Strings'.
    108  1.1  christos # - Strings which use unclear terms or require additional context to be
    109  1.1  christos #   understood.
    110  1.1  christos # - Strings which make invalid assumptions about notation of date, time or
    111  1.1  christos #   money.
    112  1.1  christos # - Pluralisation problems.
    113  1.1  christos # - Incorrect English spelling.
    114  1.1  christos # - Incorrect formatting.
    115  1.1  christos # It can be your email address, or a mailing list address where translators
    116  1.1  christos # can write to without being subscribed, or the URL of a web page through
    117  1.1  christos # which the translators can contact you.
    118  1.1  christos MSGID_BUGS_ADDRESS = bug-gnu-gettext@gnu.org
    119  1.1  christos 
    120  1.1  christos # This is the list of locale categories, beyond LC_MESSAGES, for which the
    121  1.1  christos # message catalogs shall be used.  It is usually empty.
    122  1.1  christos EXTRA_LOCALE_CATEGORIES =
    123  1.1  christos 
    124  1.1  christos MSGMERGE = msgmerge
    125  1.1  christos MSGMERGE_UPDATE = @MSGMERGE@ --update
    126  1.1  christos MSGINIT = msginit
    127  1.1  christos MSGCONV = msgconv
    128  1.1  christos MSGFILTER = msgfilter
    129  1.1  christos 
    130  1.1  christos # This is computed as $(foreach file, $(POTFILES), $(top_srcdir)/$(file))
    131  1.1  christos POTFILES_DEPS = @POTFILES_DEPS@
    132  1.1  christos 
    133  1.1  christos # This is computed as $(foreach lang, $(LINGUAS), $(srcdir)/$(lang).po)
    134  1.1  christos POFILES = @POFILES@
    135  1.1  christos # This is computed as $(foreach lang, $(LINGUAS), $(lang).po-update)
    136  1.1  christos UPDATEPOFILES = @UPDATEPOFILES@
    137  1.1  christos # This is computed as $(foreach lang, $(LINGUAS), $(lang).nop)
    138  1.1  christos DUMMYPOFILES = @DUMMYPOFILES@
    139  1.1  christos 
    140  1.1  christos SUFFIXES = .po .sed .sin .nop .po-update
    141  1.1  christos 
    142  1.1  christos .sin.sed:
    143  1.1  christos 	sed -e '/^#/d' $< > t-$@
    144  1.1  christos 	mv t-$@ $@
    145  1.1  christos 
    146  1.1  christos 
    147  1.1  christos all-local: all-local-@USE_NLS@
    148  1.1  christos 
    149  1.1  christos all-local-yes: stamp-po
    150  1.1  christos all-local-no:
    151  1.1  christos 
    152  1.1  christos # $(srcdir)/$(DOMAIN).pot is only created when needed. When xgettext finds no
    153  1.1  christos # internationalized messages, no $(srcdir)/$(DOMAIN).pot is created (because
    154  1.1  christos # we don't want to bother translators with empty POT files). We assume that
    155  1.1  christos # LINGUAS is empty in this case, i.e. $(POFILES) is empty. In this case,
    156  1.1  christos # stamp-po is a nop (i.e. a phony target).
    157  1.1  christos 
    158  1.1  christos # stamp-po is a timestamp denoting the last time at which the CATALOGS have
    159  1.1  christos # been loosely updated. Its purpose is that when a developer or translator
    160  1.1  christos # checks out the package via CVS, and the $(DOMAIN).pot file is not in CVS,
    161  1.1  christos # "make" will update the $(DOMAIN).pot and the $(CATALOGS), but subsequent
    162  1.1  christos # invocations of "make" will do nothing. This timestamp would not be necessary
    163  1.1  christos # if updating the $(CATALOGS) would always touch them; however, the rule for
    164  1.1  christos # $(POFILES) has been designed to not touch files that don't need to be
    165  1.1  christos # changed.
    166  1.1  christos stamp-po: $(srcdir)/$(DOMAIN).pot
    167  1.1  christos 	@test ! -f $(srcdir)/$(DOMAIN).pot || { \
    168  1.1  christos 	  echo "touch stamp-po" && \
    169  1.1  christos 	  echo timestamp > stamp-poT && \
    170  1.1  christos 	  mv stamp-poT stamp-po; \
    171  1.1  christos 	}
    172  1.1  christos 
    173  1.1  christos # Note: Target 'all' must not depend on target '$(DOMAIN).pot-update',
    174  1.1  christos # otherwise packages like GCC can not be built if only parts of the source
    175  1.1  christos # have been downloaded.
    176  1.1  christos 
    177  1.1  christos # This target rebuilds $(DOMAIN).pot; it is an expensive operation.
    178  1.1  christos # Note that $(DOMAIN).pot is not touched if it doesn't need to be changed.
    179  1.1  christos $(DOMAIN).pot-update: $(POTFILES_DEPS) $(SMALLPOTS) remove-potcdate.sed
    180  1.1  christos 	if test -n '$(MSGID_BUGS_ADDRESS)'; then \
    181  1.1  christos 	  msgid_bugs_address='$(MSGID_BUGS_ADDRESS)'; \
    182  1.1  christos 	else \
    183  1.1  christos 	  msgid_bugs_address='$(PACKAGE_BUGREPORT)'; \
    184  1.1  christos 	fi; \
    185  1.1  christos 	$(XGETTEXT) --default-domain=$(DOMAIN) \
    186  1.1  christos 	  --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) \
    187  1.1  christos 	  --copyright-holder='$(COPYRIGHT_HOLDER)' \
    188  1.1  christos 	  --msgid-bugs-address="$$msgid_bugs_address" \
    189  1.1  christos 	  $(SMALLPOTS)
    190  1.1  christos 	test ! -f $(DOMAIN).po || { \
    191  1.1  christos 	  if test -f $(srcdir)/$(DOMAIN).pot; then \
    192  1.1  christos 	    sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \
    193  1.1  christos 	    sed -f remove-potcdate.sed < $(DOMAIN).po > $(DOMAIN).2po && \
    194  1.1  christos 	    if cmp $(DOMAIN).1po $(DOMAIN).2po >/dev/null 2>&1; then \
    195  1.1  christos 	      rm -f $(DOMAIN).1po $(DOMAIN).2po $(DOMAIN).po; \
    196  1.1  christos 	    else \
    197  1.1  christos 	      rm -f $(DOMAIN).1po $(DOMAIN).2po $(srcdir)/$(DOMAIN).pot && \
    198  1.1  christos 	      mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \
    199  1.1  christos 	    fi; \
    200  1.1  christos 	  else \
    201  1.1  christos 	    mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \
    202  1.1  christos 	  fi; \
    203  1.1  christos 	}
    204  1.1  christos 
    205  1.1  christos 
    206  1.1  christos hello-c.pot : $(POTFILES_DEPS)
    207  1.1  christos 	$(SHELL) '$(srcdir)/xsmallpot.sh' '$(srcdir)' hello-c
    208  1.1  christos 
    209  1.1  christos hello-c-gnome.pot : $(POTFILES_DEPS)
    210  1.1  christos 	$(SHELL) '$(srcdir)/xsmallpot.sh' '$(srcdir)' hello-c-gnome
    211  1.1  christos 
    212  1.1  christos hello-c++.pot : $(POTFILES_DEPS)
    213  1.1  christos 	$(SHELL) '$(srcdir)/xsmallpot.sh' '$(srcdir)' hello-c++
    214  1.1  christos 
    215  1.1  christos hello-c++-qt.pot : $(POTFILES_DEPS)
    216  1.1  christos 	$(SHELL) '$(srcdir)/xsmallpot.sh' '$(srcdir)' hello-c++-qt
    217  1.1  christos 
    218  1.1  christos hello-c++-kde.pot : $(POTFILES_DEPS)
    219  1.1  christos 	$(SHELL) '$(srcdir)/xsmallpot.sh' '$(srcdir)' hello-c++-kde
    220  1.1  christos 
    221  1.1  christos hello-c++-gnome.pot : $(POTFILES_DEPS)
    222  1.1  christos 	$(SHELL) '$(srcdir)/xsmallpot.sh' '$(srcdir)' hello-c++-gnome
    223  1.1  christos 
    224  1.1  christos hello-c++-wxwidgets.pot : $(POTFILES_DEPS)
    225  1.1  christos 	$(SHELL) '$(srcdir)/xsmallpot.sh' '$(srcdir)' hello-c++-wxwidgets
    226  1.1  christos 
    227  1.1  christos hello-objc.pot : $(POTFILES_DEPS)
    228  1.1  christos 	$(SHELL) '$(srcdir)/xsmallpot.sh' '$(srcdir)' hello-objc
    229  1.1  christos 
    230  1.1  christos hello-objc-gnustep.pot : $(POTFILES_DEPS)
    231  1.1  christos 	$(SHELL) '$(srcdir)/xsmallpot.sh' '$(srcdir)' hello-objc-gnustep
    232  1.1  christos 
    233  1.1  christos hello-objc-gnome.pot : $(POTFILES_DEPS)
    234  1.1  christos 	$(SHELL) '$(srcdir)/xsmallpot.sh' '$(srcdir)' hello-objc-gnome
    235  1.1  christos 
    236  1.1  christos hello-sh.pot : $(POTFILES_DEPS)
    237  1.1  christos 	$(SHELL) '$(srcdir)/xsmallpot.sh' '$(srcdir)' hello-sh
    238  1.1  christos 
    239  1.1  christos hello-python.pot : $(POTFILES_DEPS)
    240  1.1  christos 	$(SHELL) '$(srcdir)/xsmallpot.sh' '$(srcdir)' hello-python
    241  1.1  christos 
    242  1.1  christos hello-clisp.pot : $(POTFILES_DEPS)
    243  1.1  christos 	$(SHELL) '$(srcdir)/xsmallpot.sh' '$(srcdir)' hello-clisp
    244  1.1  christos 
    245  1.1  christos hello-librep.pot : $(POTFILES_DEPS)
    246  1.1  christos 	$(SHELL) '$(srcdir)/xsmallpot.sh' '$(srcdir)' hello-librep
    247  1.1  christos 
    248  1.1  christos hello-guile.pot : $(POTFILES_DEPS)
    249  1.1  christos 	$(SHELL) '$(srcdir)/xsmallpot.sh' '$(srcdir)' hello-guile
    250  1.1  christos 
    251  1.1  christos hello-smalltalk.pot : $(POTFILES_DEPS)
    252  1.1  christos 	$(SHELL) '$(srcdir)/xsmallpot.sh' '$(srcdir)' hello-smalltalk
    253  1.1  christos 
    254  1.1  christos hello-java.pot : $(POTFILES_DEPS)
    255  1.1  christos 	$(SHELL) '$(srcdir)/xsmallpot.sh' '$(srcdir)' hello-java
    256  1.1  christos 
    257  1.1  christos hello-java-awt.pot : $(POTFILES_DEPS)
    258  1.1  christos 	$(SHELL) '$(srcdir)/xsmallpot.sh' '$(srcdir)' hello-java-awt
    259  1.1  christos 
    260  1.1  christos hello-java-swing.pot : $(POTFILES_DEPS)
    261  1.1  christos 	$(SHELL) '$(srcdir)/xsmallpot.sh' '$(srcdir)' hello-java-swing
    262  1.1  christos 
    263  1.1  christos hello-csharp.pot : $(POTFILES_DEPS)
    264  1.1  christos 	$(SHELL) '$(srcdir)/xsmallpot.sh' '$(srcdir)' hello-csharp
    265  1.1  christos 
    266  1.1  christos hello-csharp-forms.pot : $(POTFILES_DEPS)
    267  1.1  christos 	$(SHELL) '$(srcdir)/xsmallpot.sh' '$(srcdir)' hello-csharp-forms
    268  1.1  christos 
    269  1.1  christos hello-gawk.pot : $(POTFILES_DEPS)
    270  1.1  christos 	$(SHELL) '$(srcdir)/xsmallpot.sh' '$(srcdir)' hello-gawk
    271  1.1  christos 
    272  1.1  christos hello-pascal.pot : $(POTFILES_DEPS)
    273  1.1  christos 	$(SHELL) '$(srcdir)/xsmallpot.sh' '$(srcdir)' hello-pascal
    274  1.1  christos 
    275  1.1  christos hello-ycp.pot : $(POTFILES_DEPS)
    276  1.1  christos 	$(SHELL) '$(srcdir)/xsmallpot.sh' '$(srcdir)' hello-ycp
    277  1.1  christos 
    278  1.1  christos hello-tcl.pot : $(POTFILES_DEPS)
    279  1.1  christos 	$(SHELL) '$(srcdir)/xsmallpot.sh' '$(srcdir)' hello-tcl
    280  1.1  christos 
    281  1.1  christos hello-tcl-tk.pot : $(POTFILES_DEPS)
    282  1.1  christos 	$(SHELL) '$(srcdir)/xsmallpot.sh' '$(srcdir)' hello-tcl-tk
    283  1.1  christos 
    284  1.1  christos hello-perl.pot : $(POTFILES_DEPS)
    285  1.1  christos 	$(SHELL) '$(srcdir)/xsmallpot.sh' '$(srcdir)' hello-perl
    286  1.1  christos 
    287  1.1  christos hello-php.pot : $(POTFILES_DEPS)
    288  1.1  christos 	$(SHELL) '$(srcdir)/xsmallpot.sh' '$(srcdir)' hello-php
    289  1.1  christos 
    290  1.1  christos 
    291  1.1  christos # This rule has no dependencies: we don't need to update $(DOMAIN).pot at
    292  1.1  christos # every "make" invocation, only create it when it is missing.
    293  1.1  christos # Only "make $(DOMAIN).pot-update" or "make dist" will force an update.
    294  1.1  christos $(srcdir)/$(DOMAIN).pot:
    295  1.1  christos 	$(MAKE) $(DOMAIN).pot-update
    296  1.1  christos 
    297  1.1  christos # This target rebuilds a PO file if $(DOMAIN).pot has changed.
    298  1.1  christos # Note that a PO file is not touched if it doesn't need to be changed.
    299  1.1  christos $(POFILES): $(srcdir)/$(DOMAIN).pot
    300  1.1  christos 	@lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \
    301  1.1  christos 	test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
    302  1.1  christos 	echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \
    303  1.1  christos 	cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot
    304  1.1  christos 
    305  1.1  christos 
    306  1.1  christos html ID:
    307  1.1  christos 
    308  1.1  christos MOSTLYCLEANFILES =
    309  1.1  christos MOSTLYCLEANFILES += remove-potcdate.sed
    310  1.1  christos MOSTLYCLEANFILES += stamp-poT
    311  1.1  christos MOSTLYCLEANFILES += core core.* *.stackdump $(DOMAIN).po $(DOMAIN).1po $(DOMAIN).2po *.new.po
    312  1.1  christos MOSTLYCLEANFILES += *.o
    313  1.1  christos 
    314  1.1  christos DISTCLEANFILES = $(SMALLPOTS)
    315  1.1  christos 
    316  1.1  christos MAINTAINERCLEANFILES = stamp-po
    317  1.1  christos 
    318  1.1  christos EXTRA_DIST = remove-potcdate.sin xsmallpot.sh mmsmallpo.sh LINGUAS \
    319  1.1  christos   $(POFILES)
    320  1.1  christos 
    321  1.1  christos # Hidden from automake, but really activated. Works around an automake-1.5 bug.
    322  1.1  christos #distdir: distdir1
    323  1.1  christos distdir1:
    324  1.1  christos 	$(MAKE) update-po
    325  1.1  christos 	if test -f $(srcdir)/$(DOMAIN).pot; then \
    326  1.1  christos 	  for file in $(DOMAIN).pot stamp-po; do \
    327  1.1  christos 	    if test -f $$file; then d=.; else d=$(srcdir); fi; \
    328  1.1  christos 	    cp -p $$d/$$file $(distdir)/$$file || exit 1; \
    329  1.1  christos 	  done; \
    330  1.1  christos 	fi
    331  1.1  christos 
    332  1.1  christos update-po: Makefile
    333  1.1  christos 	$(MAKE) $(DOMAIN).pot-update
    334  1.1  christos 	test -z "$(UPDATEPOFILES)" || $(MAKE) $(UPDATEPOFILES)
    335  1.1  christos 
    336  1.1  christos # General rule for updating PO files.
    337  1.1  christos 
    338  1.1  christos .nop.po-update:
    339  1.1  christos 	@lang=`echo $@ | sed -e 's/\.po-update$$//'`; \
    340  1.1  christos 	tmpdir=`pwd`; \
    341  1.1  christos 	echo "$$lang:"; \
    342  1.1  christos 	test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
    343  1.1  christos 	echo "$${cdcmd}$(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \
    344  1.1  christos 	cd $(srcdir); \
    345  1.1  christos 	if $(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$tmpdir/$$lang.new.po; then \
    346  1.1  christos 	  if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
    347  1.1  christos 	    rm -f $$tmpdir/$$lang.new.po; \
    348  1.1  christos 	  else \
    349  1.1  christos 	    if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
    350  1.1  christos 	      :; \
    351  1.1  christos 	    else \
    352  1.1  christos 	      echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
    353  1.1  christos 	      exit 1; \
    354  1.1  christos 	    fi; \
    355  1.1  christos 	  fi; \
    356  1.1  christos 	  $(MAKE) $(SMALLPOFILES_FOR_lang) LL=$$lang; \
    357  1.1  christos 	else \
    358  1.1  christos 	  echo "msgmerge for $$lang.po failed!" 1>&2; \
    359  1.1  christos 	  rm -f $$tmpdir/$$lang.new.po; \
    360  1.1  christos 	fi
    361  1.1  christos 
    362  1.1  christos $(DUMMYPOFILES):
    363  1.1  christos 
    364  1.1  christos 
    365  1.1  christos # Rules for updating small PO files in the other directories.
    366  1.1  christos # Depend on LL being set.
    367  1.1  christos 
    368  1.1  christos SMALLPOFILES_FOR_lang = \
    369  1.1  christos   ../hello-c/po/$$lang.po \
    370  1.1  christos   ../hello-c-gnome/po/$$lang.po \
    371  1.1  christos   ../hello-c++/po/$$lang.po \
    372  1.1  christos   ../hello-c++-qt/po/$$lang.po \
    373  1.1  christos   ../hello-c++-kde/po/$$lang.po \
    374  1.1  christos   ../hello-c++-gnome/po/$$lang.po \
    375  1.1  christos   ../hello-c++-wxwidgets/po/$$lang.po \
    376  1.1  christos   ../hello-objc/po/$$lang.po \
    377  1.1  christos   ../hello-objc-gnustep/po/$$lang.po \
    378  1.1  christos   ../hello-objc-gnome/po/$$lang.po \
    379  1.1  christos   ../hello-sh/po/$$lang.po \
    380  1.1  christos   ../hello-python/po/$$lang.po \
    381  1.1  christos   ../hello-clisp/po/$$lang.po \
    382  1.1  christos   ../hello-librep/po/$$lang.po \
    383  1.1  christos   ../hello-guile/po/$$lang.po \
    384  1.1  christos   ../hello-smalltalk/po/$$lang.po \
    385  1.1  christos   ../hello-java/po/$$lang.po \
    386  1.1  christos   ../hello-java-awt/po/$$lang.po \
    387  1.1  christos   ../hello-java-swing/po/$$lang.po \
    388  1.1  christos   ../hello-csharp/po/$$lang.po \
    389  1.1  christos   ../hello-csharp-forms/po/$$lang.po \
    390  1.1  christos   ../hello-gawk/po/$$lang.po \
    391  1.1  christos   ../hello-pascal/po/$$lang.po \
    392  1.1  christos   ../hello-ycp/po/$$lang.po \
    393  1.1  christos   ../hello-tcl/po/$$lang.po \
    394  1.1  christos   ../hello-tcl-tk/po/$$lang.po \
    395  1.1  christos   ../hello-perl/po/$$lang.po \
    396  1.1  christos   ../hello-php/po/$$lang.po
    397  1.1  christos 
    398  1.1  christos ../hello-c/po/$(LL).po: hello-c.pot $(LL).po
    399  1.1  christos 	$(SHELL) mmsmallpo.sh hello-c $(LL)
    400  1.1  christos 
    401  1.1  christos ../hello-c-gnome/po/$(LL).po: hello-c-gnome.pot $(LL).po
    402  1.1  christos 	$(SHELL) mmsmallpo.sh hello-c-gnome $(LL)
    403  1.1  christos 
    404  1.1  christos ../hello-c++/po/$(LL).po: hello-c++.pot $(LL).po
    405  1.1  christos 	$(SHELL) mmsmallpo.sh hello-c++ $(LL)
    406  1.1  christos 
    407  1.1  christos ../hello-c++-qt/po/$(LL).po: hello-c++-qt.pot $(LL).po
    408  1.1  christos 	$(SHELL) mmsmallpo.sh hello-c++-qt $(LL)
    409  1.1  christos 
    410  1.1  christos ../hello-c++-kde/po/$(LL).po: hello-c++-kde.pot $(LL).po
    411  1.1  christos 	$(SHELL) mmsmallpo.sh hello-c++-kde $(LL)
    412  1.1  christos 
    413  1.1  christos ../hello-c++-gnome/po/$(LL).po: hello-c++-gnome.pot $(LL).po
    414  1.1  christos 	$(SHELL) mmsmallpo.sh hello-c++-gnome $(LL)
    415  1.1  christos 
    416  1.1  christos ../hello-c++-wxwidgets/po/$(LL).po: hello-c++-wxwidgets.pot $(LL).po
    417  1.1  christos 	$(SHELL) mmsmallpo.sh hello-c++-wxwidgets $(LL)
    418  1.1  christos 
    419  1.1  christos ../hello-objc/po/$(LL).po: hello-objc.pot $(LL).po
    420  1.1  christos 	$(SHELL) mmsmallpo.sh hello-objc $(LL)
    421  1.1  christos 
    422  1.1  christos ../hello-objc-gnustep/po/$(LL).po: hello-objc-gnustep.pot $(LL).po
    423  1.1  christos 	$(SHELL) mmsmallpo.sh hello-objc-gnustep $(LL)
    424  1.1  christos 
    425  1.1  christos ../hello-objc-gnome/po/$(LL).po: hello-objc-gnome.pot $(LL).po
    426  1.1  christos 	$(SHELL) mmsmallpo.sh hello-objc-gnome $(LL)
    427  1.1  christos 
    428  1.1  christos ../hello-sh/po/$(LL).po: hello-sh.pot $(LL).po
    429  1.1  christos 	$(SHELL) mmsmallpo.sh hello-sh $(LL)
    430  1.1  christos 
    431  1.1  christos ../hello-python/po/$(LL).po: hello-python.pot $(LL).po
    432  1.1  christos 	$(SHELL) mmsmallpo.sh hello-python $(LL)
    433  1.1  christos 
    434  1.1  christos ../hello-clisp/po/$(LL).po: hello-clisp.pot $(LL).po
    435  1.1  christos 	$(SHELL) mmsmallpo.sh hello-clisp $(LL)
    436  1.1  christos 
    437  1.1  christos ../hello-librep/po/$(LL).po: hello-librep.pot $(LL).po
    438  1.1  christos 	$(SHELL) mmsmallpo.sh hello-librep $(LL)
    439  1.1  christos 
    440  1.1  christos ../hello-guile/po/$(LL).po: hello-guile.pot $(LL).po
    441  1.1  christos 	$(SHELL) mmsmallpo.sh hello-guile $(LL)
    442  1.1  christos 
    443  1.1  christos ../hello-smalltalk/po/$(LL).po: hello-smalltalk.pot $(LL).po
    444  1.1  christos 	$(SHELL) mmsmallpo.sh hello-smalltalk $(LL)
    445  1.1  christos 
    446  1.1  christos ../hello-java/po/$(LL).po: hello-java.pot $(LL).po
    447  1.1  christos 	$(SHELL) mmsmallpo.sh hello-java $(LL)
    448  1.1  christos 
    449  1.1  christos ../hello-java-awt/po/$(LL).po: hello-java-awt.pot $(LL).po
    450  1.1  christos 	$(SHELL) mmsmallpo.sh hello-java-awt $(LL)
    451  1.1  christos 
    452  1.1  christos ../hello-java-swing/po/$(LL).po: hello-java-swing.pot $(LL).po
    453  1.1  christos 	$(SHELL) mmsmallpo.sh hello-java-swing $(LL)
    454  1.1  christos 
    455  1.1  christos ../hello-csharp/po/$(LL).po: hello-csharp.pot $(LL).po
    456  1.1  christos 	$(SHELL) mmsmallpo.sh hello-csharp $(LL)
    457  1.1  christos 
    458  1.1  christos ../hello-csharp-forms/po/$(LL).po: hello-csharp-forms.pot $(LL).po
    459  1.1  christos 	$(SHELL) mmsmallpo.sh hello-csharp-forms $(LL)
    460  1.1  christos 
    461  1.1  christos ../hello-gawk/po/$(LL).po: hello-gawk.pot $(LL).po
    462  1.1  christos 	$(SHELL) mmsmallpo.sh hello-gawk $(LL)
    463  1.1  christos 
    464  1.1  christos ../hello-pascal/po/$(LL).po: hello-pascal.pot $(LL).po
    465  1.1  christos 	$(SHELL) mmsmallpo.sh hello-pascal $(LL)
    466  1.1  christos 
    467  1.1  christos ../hello-ycp/po/$(LL).po: hello-ycp.pot $(LL).po
    468  1.1  christos 	$(SHELL) mmsmallpo.sh hello-ycp $(LL)
    469  1.1  christos 
    470  1.1  christos ../hello-tcl/po/$(LL).po: hello-tcl.pot $(LL).po
    471  1.1  christos 	$(SHELL) mmsmallpo.sh hello-tcl $(LL)
    472  1.1  christos 
    473  1.1  christos ../hello-tcl-tk/po/$(LL).po: hello-tcl-tk.pot $(LL).po
    474  1.1  christos 	$(SHELL) mmsmallpo.sh hello-tcl-tk $(LL)
    475  1.1  christos 
    476  1.1  christos ../hello-perl/po/$(LL).po: hello-perl.pot $(LL).po
    477  1.1  christos 	$(SHELL) mmsmallpo.sh hello-perl $(LL)
    478  1.1  christos 
    479  1.1  christos ../hello-php/po/$(LL).po: hello-php.pot $(LL).po
    480  1.1  christos 	$(SHELL) mmsmallpo.sh hello-php $(LL)
    481