aboutsummaryrefslogtreecommitdiff
path: root/po/Makefile.in.in
diff options
context:
space:
mode:
Diffstat (limited to 'po/Makefile.in.in')
-rw-r--r--po/Makefile.in.in47
1 files changed, 13 insertions, 34 deletions
diff --git a/po/Makefile.in.in b/po/Makefile.in.in
index 65184f65c..fabdc76c9 100644
--- a/po/Makefile.in.in
+++ b/po/Makefile.in.in
@@ -8,8 +8,8 @@
8# Please note that the actual code of GNU gettext is covered by the GNU 8# Please note that the actual code of GNU gettext is covered by the GNU
9# General Public License and is *not* in the public domain. 9# General Public License and is *not* in the public domain.
10# 10#
11# Origin: gettext-0.19 11# Origin: gettext-0.18.3
12GETTEXT_MACRO_VERSION = 0.19 12GETTEXT_MACRO_VERSION = 0.18
13 13
14PACKAGE = @PACKAGE@ 14PACKAGE = @PACKAGE@
15VERSION = @VERSION@ 15VERSION = @VERSION@
@@ -77,16 +77,6 @@ POTFILES = \
77 77
78CATALOGS = @CATALOGS@ 78CATALOGS = @CATALOGS@
79 79
80POFILESDEPS_ = $(srcdir)/$(DOMAIN).pot
81POFILESDEPS_yes = $(POFILESDEPS_)
82POFILESDEPS_no =
83POFILESDEPS = $(POFILESDEPS_$(PO_DEPENDS_ON_POT))
84
85DISTFILESDEPS_ = update-po
86DISTFILESDEPS_yes = $(DISTFILESDEPS_)
87DISTFILESDEPS_no =
88DISTFILESDEPS = $(DISTFILESDEPS_$(DIST_DEPENDS_ON_UPDATE_PO))
89
90# Makevars gets inserted here. (Don't remove this line!) 80# Makevars gets inserted here. (Don't remove this line!)
91 81
92.SUFFIXES: 82.SUFFIXES:
@@ -153,25 +143,15 @@ stamp-po: $(srcdir)/$(DOMAIN).pot
153# heuristic whether some file in the top level directory mentions "GNU xyz". 143# heuristic whether some file in the top level directory mentions "GNU xyz".
154# If GNU 'find' is available, we avoid grepping through monster files. 144# If GNU 'find' is available, we avoid grepping through monster files.
155$(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed 145$(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed
156 package_gnu="$(PACKAGE_GNU)"; \ 146 if { if (LC_ALL=C find --version) 2>/dev/null | grep GNU >/dev/null; then \
157 test -n "$$package_gnu" || { \ 147 LC_ALL=C find -L $(top_srcdir) -maxdepth 1 -type f -size -10000000c -exec grep 'GNU @PACKAGE@' /dev/null '{}' ';' 2>/dev/null; \
158 if { if (LC_ALL=C find --version) 2>/dev/null | grep GNU >/dev/null; then \ 148 else \
159 LC_ALL=C find -L $(top_srcdir) -maxdepth 1 -type f \ 149 LC_ALL=C grep 'GNU @PACKAGE@' $(top_srcdir)/* 2>/dev/null; \
160 -size -10000000c -exec grep 'GNU @PACKAGE@' \ 150 fi; \
161 /dev/null '{}' ';' 2>/dev/null; \ 151 } | grep -v 'libtool:' >/dev/null; then \
162 else \ 152 package_gnu='GNU '; \
163 LC_ALL=C grep 'GNU @PACKAGE@' $(top_srcdir)/* 2>/dev/null; \
164 fi; \
165 } | grep -v 'libtool:' >/dev/null; then \
166 package_gnu=yes; \
167 else \
168 package_gnu=no; \
169 fi; \
170 }; \
171 if test "$$package_gnu" = "yes"; then \
172 package_prefix='GNU '; \
173 else \ 153 else \
174 package_prefix=''; \ 154 package_gnu=''; \
175 fi; \ 155 fi; \
176 if test -n '$(MSGID_BUGS_ADDRESS)' || test '$(PACKAGE_BUGREPORT)' = '@'PACKAGE_BUGREPORT'@'; then \ 156 if test -n '$(MSGID_BUGS_ADDRESS)' || test '$(PACKAGE_BUGREPORT)' = '@'PACKAGE_BUGREPORT'@'; then \
177 msgid_bugs_address='$(MSGID_BUGS_ADDRESS)'; \ 157 msgid_bugs_address='$(MSGID_BUGS_ADDRESS)'; \
@@ -191,7 +171,7 @@ $(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed
191 --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) @XGETTEXT_EXTRA_OPTIONS@ \ 171 --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) @XGETTEXT_EXTRA_OPTIONS@ \
192 --files-from=$(srcdir)/POTFILES.in \ 172 --files-from=$(srcdir)/POTFILES.in \
193 --copyright-holder='$(COPYRIGHT_HOLDER)' \ 173 --copyright-holder='$(COPYRIGHT_HOLDER)' \
194 --package-name="$${package_prefix}@PACKAGE@" \ 174 --package-name="$${package_gnu}@PACKAGE@" \
195 --package-version='@VERSION@' \ 175 --package-version='@VERSION@' \
196 --msgid-bugs-address="$$msgid_bugs_address" \ 176 --msgid-bugs-address="$$msgid_bugs_address" \
197 ;; \ 177 ;; \
@@ -219,10 +199,9 @@ $(srcdir)/$(DOMAIN).pot:
219 199
220# This target rebuilds a PO file if $(DOMAIN).pot has changed. 200# This target rebuilds a PO file if $(DOMAIN).pot has changed.
221# Note that a PO file is not touched if it doesn't need to be changed. 201# Note that a PO file is not touched if it doesn't need to be changed.
222$(POFILES): $(POFILESDEPS) 202$(POFILES): $(srcdir)/$(DOMAIN).pot
223 @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \ 203 @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \
224 if test -f "$(srcdir)/$${lang}.po"; then \ 204 if test -f "$(srcdir)/$${lang}.po"; then \
225 test -f $(srcdir)/$(DOMAIN).pot || $(MAKE) $(srcdir)/$(DOMAIN).pot; \
226 test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ 205 test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
227 echo "$${cdcmd}$(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot"; \ 206 echo "$${cdcmd}$(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot"; \
228 cd $(srcdir) \ 207 cd $(srcdir) \
@@ -383,7 +362,7 @@ maintainer-clean: distclean
383 362
384distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) 363distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
385dist distdir: 364dist distdir:
386 test -z "$(DISTFILESDEPS)" || $(MAKE) $(DISTFILESDEPS) 365 $(MAKE) update-po
387 @$(MAKE) dist2 366 @$(MAKE) dist2
388# This is a separate target because 'update-po' must be executed before. 367# This is a separate target because 'update-po' must be executed before.
389dist2: stamp-po $(DISTFILES) 368dist2: stamp-po $(DISTFILES)