|
|
|
@ -1,14 +1,12 @@ |
|
|
|
# Makefile for PO directory in any package using GNU gettext.
|
|
|
|
# Copyright (C) 1995-1997, 2000-2007, 2009-2010 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
|
|
|
|
#
|
|
|
|
# This file can be copied and used freely without restrictions. It can
|
|
|
|
# be used in projects which are not available under the GNU General Public
|
|
|
|
# License but which still want to provide support for the GNU gettext
|
|
|
|
# functionality.
|
|
|
|
# Please note that the actual code of GNU gettext is covered by the GNU
|
|
|
|
# General Public License and is *not* in the public domain.
|
|
|
|
# Copying and distribution of this file, with or without modification,
|
|
|
|
# are permitted in any medium without royalty provided the copyright
|
|
|
|
# notice and this notice are preserved. This file is offered as-is,
|
|
|
|
# without any warranty.
|
|
|
|
#
|
|
|
|
# Origin: gettext-0.19
|
|
|
|
# Origin: gettext-0.19.6
|
|
|
|
GETTEXT_MACRO_VERSION = 0.19 |
|
|
|
|
|
|
|
PACKAGE = @PACKAGE@ |
|
|
|
@ -197,6 +195,11 @@ $(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed |
|
|
|
;; \
|
|
|
|
esac |
|
|
|
test ! -f $(DOMAIN).po || { \
|
|
|
|
if test -f $(srcdir)/$(DOMAIN).pot-header; then \
|
|
|
|
sed -e '1,/^#$$/d' < $(DOMAIN).po > $(DOMAIN).1po && \
|
|
|
|
cat $(srcdir)/$(DOMAIN).pot-header $(DOMAIN).1po > $(DOMAIN).po; \
|
|
|
|
rm -f $(DOMAIN).1po; \
|
|
|
|
fi; \
|
|
|
|
if test -f $(srcdir)/$(DOMAIN).pot; then \
|
|
|
|
sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \
|
|
|
|
sed -f remove-potcdate.sed < $(DOMAIN).po > $(DOMAIN).2po && \
|
|
|
|
@ -226,7 +229,7 @@ $(POFILES): $(POFILESDEPS) |
|
|
|
test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
|
|
|
|
echo "$${cdcmd}$(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot"; \
|
|
|
|
cd $(srcdir) \
|
|
|
|
&& { case `$(MSGMERGE_UPDATE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \
|
|
|
|
&& { case `$(MSGMERGE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \
|
|
|
|
'' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \
|
|
|
|
$(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) $${lang}.po $(DOMAIN).pot;; \
|
|
|
|
*) \
|
|
|
|
|