Update POTFILES.in
[geeqie.git] / po / Makefile.in.in.patch
1 --- Makefile.in.in      2008-04-19 14:36:53.000000000 +0200
2 +++ Makefile.in.in.new  2008-04-19 14:39:19.000000000 +0200
3 @@ -216,7 +216,30 @@
4             || cp -p $(srcdir)/$$file $(distdir); \
5         done
6  
7 -update-po: Makefile
8 +### Updating po and gmo files
9 +#
10 +# Update by merging all .po files with the .po template master file.
11 +#
12 +# It is possible to update only a single .po file by setting the PO variable to
13 +# either <lang> or <lang>.po when calling make. Example: make update-po PO=is
14 +
15 +update-po: Makefile $(GETTEXT_PACKAGE).pot
16 +       @cd $(srcdir); \
17 +       $(foreach lang,$(basename $(if $(strip $(PO)),$(PO),$(CATALOGS))), \
18 +         echo -n "$(lang): "; \
19 +         if $(MSGMERGE) $(lang).po $(GETTEXT_PACKAGE).pot -o $(lang).new.po; then \
20 +           mv -f $(lang).new.po $(lang).po; \
21 +         else \
22 +           echo "msgmerge failed!"; \
23 +           rm -f $(lang).new.po; \
24 +         fi; \
25 +       )
26 +       $(MAKE) update-gmo
27 +
28 +update-gmo: Makefile $(CATALOGS)
29 +       @:
30 +
31 +update-po-orig: Makefile
32         $(MAKE) $(GETTEXT_PACKAGE).pot
33         tmpdir=`pwd`; \
34         cd $(srcdir); \