diff options
Diffstat (limited to 'po/Makefile.in')
-rw-r--r-- | po/Makefile.in | 112 |
1 files changed, 32 insertions, 80 deletions
diff --git a/po/Makefile.in b/po/Makefile.in index e9f1dab8..f3c413a1 100644 --- a/po/Makefile.in +++ b/po/Makefile.in | |||
@@ -1,5 +1,5 @@ | |||
1 | # Makefile for PO directory in any package using GNU gettext. | 1 | # Makefile for PO directory in any package using GNU gettext. |
2 | # Copyright (C) 1995-1997, 2000-2006 by Ulrich Drepper <drepper@gnu.ai.mit.edu> | 2 | # Copyright (C) 1995-1997, 2000-2003 by Ulrich Drepper <drepper@gnu.ai.mit.edu> |
3 | # | 3 | # |
4 | # This file can be copied and used freely without restrictions. It can | 4 | # This file can be copied and used freely without restrictions. It can |
5 | # be used in projects which are not available under the GNU General Public | 5 | # be used in projects which are not available under the GNU General Public |
@@ -8,11 +8,10 @@ | |||
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.16 | 11 | # Origin: gettext-0.13 |
12 | 12 | ||
13 | PACKAGE = gnunet-gtk | 13 | PACKAGE = gnunet-gtk |
14 | VERSION = 0.7.1b | 14 | VERSION = 0.7.1c |
15 | PACKAGE_BUGREPORT = bug-gnunet@gnu.org | ||
16 | 15 | ||
17 | SHELL = /bin/sh | 16 | SHELL = /bin/sh |
18 | 17 | ||
@@ -23,38 +22,18 @@ top_srcdir = .. | |||
23 | 22 | ||
24 | prefix = /home/grothoff/ | 23 | prefix = /home/grothoff/ |
25 | exec_prefix = ${prefix} | 24 | exec_prefix = ${prefix} |
26 | datarootdir = ${prefix}/share | 25 | datadir = ${prefix}/share |
27 | datadir = ${datarootdir} | 26 | localedir = $(datadir)/locale |
28 | localedir = ${datarootdir}/locale | ||
29 | gettextsrcdir = $(datadir)/gettext/po | 27 | gettextsrcdir = $(datadir)/gettext/po |
30 | 28 | ||
31 | INSTALL = /usr/bin/install -c | 29 | INSTALL = /usr/bin/install -c |
32 | INSTALL_DATA = ${INSTALL} -m 644 | 30 | INSTALL_DATA = ${INSTALL} -m 644 |
31 | MKINSTALLDIRS = $(top_builddir)/./mkinstalldirs | ||
32 | mkinstalldirs = $(SHELL) $(MKINSTALLDIRS) | ||
33 | 33 | ||
34 | # We use $(mkdir_p). | 34 | GMSGFMT = /usr/bin/msgfmt |
35 | # In automake <= 1.9.x, $(mkdir_p) is defined either as "mkdir -p --" or as | 35 | MSGFMT = /usr/bin/msgfmt |
36 | # "$(mkinstalldirs)" or as "$(install_sh) -d". For these automake versions, | 36 | XGETTEXT = /usr/bin/xgettext |
37 | # /home/grothoff/svn/gnunet-gtk/install-sh does not start with $(SHELL), so we add it. | ||
38 | # In automake >= 1.10, mkdir -p -- . is derived from ${MKDIR_P}, which is defined | ||
39 | # either as "/path/to/mkdir -p" or ".../install-sh -c -d". For these automake | ||
40 | # versions, $(mkinstalldirs) and $(install_sh) are unused. | ||
41 | mkinstalldirs = $(SHELL) /home/grothoff/svn/gnunet-gtk/install-sh -d | ||
42 | install_sh = $(SHELL) /home/grothoff/svn/gnunet-gtk/install-sh | ||
43 | MKDIR_P = @MKDIR_P@ | ||
44 | mkdir_p = mkdir -p -- . | ||
45 | |||
46 | GMSGFMT_ = /usr/bin/msgfmt | ||
47 | GMSGFMT_no = /usr/bin/msgfmt | ||
48 | GMSGFMT_yes = /usr/bin/msgfmt | ||
49 | GMSGFMT = $(GMSGFMT_$(USE_MSGCTXT)) | ||
50 | MSGFMT_ = /usr/bin/msgfmt | ||
51 | MSGFMT_no = /usr/bin/msgfmt | ||
52 | MSGFMT_yes = /usr/bin/msgfmt | ||
53 | MSGFMT = $(MSGFMT_$(USE_MSGCTXT)) | ||
54 | XGETTEXT_ = /usr/bin/xgettext | ||
55 | XGETTEXT_no = /usr/bin/xgettext | ||
56 | XGETTEXT_yes = /usr/bin/xgettext | ||
57 | XGETTEXT = $(XGETTEXT_$(USE_MSGCTXT)) | ||
58 | MSGMERGE = msgmerge | 37 | MSGMERGE = msgmerge |
59 | MSGMERGE_UPDATE = /usr/bin/msgmerge --update | 38 | MSGMERGE_UPDATE = /usr/bin/msgmerge --update |
60 | MSGINIT = msginit | 39 | MSGINIT = msginit |
@@ -67,7 +46,7 @@ UPDATEPOFILES = @UPDATEPOFILES@ | |||
67 | DUMMYPOFILES = @DUMMYPOFILES@ | 46 | DUMMYPOFILES = @DUMMYPOFILES@ |
68 | DISTFILES.common = Makefile.in.in remove-potcdate.sin \ | 47 | DISTFILES.common = Makefile.in.in remove-potcdate.sin \ |
69 | $(DISTFILES.common.extra1) $(DISTFILES.common.extra2) $(DISTFILES.common.extra3) | 48 | $(DISTFILES.common.extra1) $(DISTFILES.common.extra2) $(DISTFILES.common.extra3) |
70 | DISTFILES = $(DISTFILES.common) Makevars POTFILES.in \ | 49 | DISTFILES = $(DISTFILES.common) Makevars POTFILES.in $(DOMAIN).pot stamp-po \ |
71 | $(POFILES) $(GMOFILES) \ | 50 | $(POFILES) $(GMOFILES) \ |
72 | $(DISTFILES.extra1) $(DISTFILES.extra2) $(DISTFILES.extra3) | 51 | $(DISTFILES.extra1) $(DISTFILES.extra2) $(DISTFILES.extra3) |
73 | 52 | ||
@@ -78,7 +57,7 @@ CATALOGS = @CATALOGS@ | |||
78 | # Makevars gets inserted here. (Don't remove this line!) | 57 | # Makevars gets inserted here. (Don't remove this line!) |
79 | 58 | ||
80 | .SUFFIXES: | 59 | .SUFFIXES: |
81 | .SUFFIXES: .po .gmo .mo .sed .sin .nop .po-create .po-update | 60 | .SUFFIXES: .po .gmo .mo .sed .sin .nop .po-update |
82 | 61 | ||
83 | .po.mo: | 62 | .po.mo: |
84 | @echo "$(MSGFMT) -c -o $@ $<"; \ | 63 | @echo "$(MSGFMT) -c -o $@ $<"; \ |
@@ -100,12 +79,6 @@ all: all-yes | |||
100 | all-yes: stamp-po | 79 | all-yes: stamp-po |
101 | all-no: | 80 | all-no: |
102 | 81 | ||
103 | # $(srcdir)/$(DOMAIN).pot is only created when needed. When xgettext finds no | ||
104 | # internationalized messages, no $(srcdir)/$(DOMAIN).pot is created (because | ||
105 | # we don't want to bother translators with empty POT files). We assume that | ||
106 | # LINGUAS is empty in this case, i.e. $(POFILES) and $(GMOFILES) are empty. | ||
107 | # In this case, stamp-po is a nop (i.e. a phony target). | ||
108 | |||
109 | # stamp-po is a timestamp denoting the last time at which the CATALOGS have | 82 | # stamp-po is a timestamp denoting the last time at which the CATALOGS have |
110 | # been loosely updated. Its purpose is that when a developer or translator | 83 | # been loosely updated. Its purpose is that when a developer or translator |
111 | # checks out the package via CVS, and the $(DOMAIN).pot file is not in CVS, | 84 | # checks out the package via CVS, and the $(DOMAIN).pot file is not in CVS, |
@@ -115,13 +88,10 @@ all-no: | |||
115 | # $(POFILES) has been designed to not touch files that don't need to be | 88 | # $(POFILES) has been designed to not touch files that don't need to be |
116 | # changed. | 89 | # changed. |
117 | stamp-po: $(srcdir)/$(DOMAIN).pot | 90 | stamp-po: $(srcdir)/$(DOMAIN).pot |
118 | test ! -f $(srcdir)/$(DOMAIN).pot || \ | 91 | test -z "$(GMOFILES)" || $(MAKE) $(GMOFILES) |
119 | test -z "$(GMOFILES)" || $(MAKE) $(GMOFILES) | 92 | @echo "touch stamp-po" |
120 | @test ! -f $(srcdir)/$(DOMAIN).pot || { \ | 93 | @echo timestamp > stamp-poT |
121 | echo "touch stamp-po" && \ | 94 | @mv stamp-poT stamp-po |
122 | echo timestamp > stamp-poT && \ | ||
123 | mv stamp-poT stamp-po; \ | ||
124 | } | ||
125 | 95 | ||
126 | # Note: Target 'all' must not depend on target '$(DOMAIN).pot-update', | 96 | # Note: Target 'all' must not depend on target '$(DOMAIN).pot-update', |
127 | # otherwise packages like GCC can not be built if only parts of the source | 97 | # otherwise packages like GCC can not be built if only parts of the source |
@@ -130,16 +100,11 @@ stamp-po: $(srcdir)/$(DOMAIN).pot | |||
130 | # This target rebuilds $(DOMAIN).pot; it is an expensive operation. | 100 | # This target rebuilds $(DOMAIN).pot; it is an expensive operation. |
131 | # Note that $(DOMAIN).pot is not touched if it doesn't need to be changed. | 101 | # Note that $(DOMAIN).pot is not touched if it doesn't need to be changed. |
132 | $(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed | 102 | $(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed |
133 | if test -n '$(MSGID_BUGS_ADDRESS)' || test '$(PACKAGE_BUGREPORT)' = '@'PACKAGE_BUGREPORT'@'; then \ | ||
134 | msgid_bugs_address='$(MSGID_BUGS_ADDRESS)'; \ | ||
135 | else \ | ||
136 | msgid_bugs_address='$(PACKAGE_BUGREPORT)'; \ | ||
137 | fi; \ | ||
138 | $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \ | 103 | $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \ |
139 | --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) \ | 104 | --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) \ |
140 | --files-from=$(srcdir)/POTFILES.in \ | 105 | --files-from=$(srcdir)/POTFILES.in \ |
141 | --copyright-holder='$(COPYRIGHT_HOLDER)' \ | 106 | --copyright-holder='$(COPYRIGHT_HOLDER)' \ |
142 | --msgid-bugs-address="$$msgid_bugs_address" | 107 | --msgid-bugs-address='$(MSGID_BUGS_ADDRESS)' |
143 | test ! -f $(DOMAIN).po || { \ | 108 | test ! -f $(DOMAIN).po || { \ |
144 | if test -f $(srcdir)/$(DOMAIN).pot; then \ | 109 | if test -f $(srcdir)/$(DOMAIN).pot; then \ |
145 | sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \ | 110 | sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \ |
@@ -165,20 +130,16 @@ $(srcdir)/$(DOMAIN).pot: | |||
165 | # Note that a PO file is not touched if it doesn't need to be changed. | 130 | # Note that a PO file is not touched if it doesn't need to be changed. |
166 | $(POFILES): $(srcdir)/$(DOMAIN).pot | 131 | $(POFILES): $(srcdir)/$(DOMAIN).pot |
167 | @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \ | 132 | @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \ |
168 | if test -f "$(srcdir)/$${lang}.po"; then \ | 133 | test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ |
169 | test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ | 134 | echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \ |
170 | echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \ | 135 | cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot |
171 | cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot; \ | ||
172 | else \ | ||
173 | $(MAKE) $${lang}.po-create; \ | ||
174 | fi | ||
175 | 136 | ||
176 | 137 | ||
177 | install: install-exec install-data | 138 | install: install-exec install-data |
178 | install-exec: | 139 | install-exec: |
179 | install-data: install-data-yes | 140 | install-data: install-data-yes |
180 | if test "$(PACKAGE)" = "gettext-tools"; then \ | 141 | if test "$(PACKAGE)" = "gettext-tools"; then \ |
181 | $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \ | 142 | $(mkinstalldirs) $(DESTDIR)$(gettextsrcdir); \ |
182 | for file in $(DISTFILES.common) Makevars.template; do \ | 143 | for file in $(DISTFILES.common) Makevars.template; do \ |
183 | $(INSTALL_DATA) $(srcdir)/$$file \ | 144 | $(INSTALL_DATA) $(srcdir)/$$file \ |
184 | $(DESTDIR)$(gettextsrcdir)/$$file; \ | 145 | $(DESTDIR)$(gettextsrcdir)/$$file; \ |
@@ -191,13 +152,13 @@ install-data: install-data-yes | |||
191 | fi | 152 | fi |
192 | install-data-no: all | 153 | install-data-no: all |
193 | install-data-yes: all | 154 | install-data-yes: all |
194 | $(mkdir_p) $(DESTDIR)$(datadir) | 155 | $(mkinstalldirs) $(DESTDIR)$(datadir) |
195 | @catalogs='$(CATALOGS)'; \ | 156 | @catalogs='$(CATALOGS)'; \ |
196 | for cat in $$catalogs; do \ | 157 | for cat in $$catalogs; do \ |
197 | cat=`basename $$cat`; \ | 158 | cat=`basename $$cat`; \ |
198 | lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ | 159 | lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ |
199 | dir=$(localedir)/$$lang/LC_MESSAGES; \ | 160 | dir=$(localedir)/$$lang/LC_MESSAGES; \ |
200 | $(mkdir_p) $(DESTDIR)$$dir; \ | 161 | $(mkinstalldirs) $(DESTDIR)$$dir; \ |
201 | if test -r $$cat; then realcat=$$cat; else realcat=$(srcdir)/$$cat; fi; \ | 162 | if test -r $$cat; then realcat=$$cat; else realcat=$(srcdir)/$$cat; fi; \ |
202 | $(INSTALL_DATA) $$realcat $(DESTDIR)$$dir/$(DOMAIN).mo; \ | 163 | $(INSTALL_DATA) $$realcat $(DESTDIR)$$dir/$(DOMAIN).mo; \ |
203 | echo "installing $$realcat as $(DESTDIR)$$dir/$(DOMAIN).mo"; \ | 164 | echo "installing $$realcat as $(DESTDIR)$$dir/$(DOMAIN).mo"; \ |
@@ -237,19 +198,19 @@ installdirs: installdirs-exec installdirs-data | |||
237 | installdirs-exec: | 198 | installdirs-exec: |
238 | installdirs-data: installdirs-data-yes | 199 | installdirs-data: installdirs-data-yes |
239 | if test "$(PACKAGE)" = "gettext-tools"; then \ | 200 | if test "$(PACKAGE)" = "gettext-tools"; then \ |
240 | $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \ | 201 | $(mkinstalldirs) $(DESTDIR)$(gettextsrcdir); \ |
241 | else \ | 202 | else \ |
242 | : ; \ | 203 | : ; \ |
243 | fi | 204 | fi |
244 | installdirs-data-no: | 205 | installdirs-data-no: |
245 | installdirs-data-yes: | 206 | installdirs-data-yes: |
246 | $(mkdir_p) $(DESTDIR)$(datadir) | 207 | $(mkinstalldirs) $(DESTDIR)$(datadir) |
247 | @catalogs='$(CATALOGS)'; \ | 208 | @catalogs='$(CATALOGS)'; \ |
248 | for cat in $$catalogs; do \ | 209 | for cat in $$catalogs; do \ |
249 | cat=`basename $$cat`; \ | 210 | cat=`basename $$cat`; \ |
250 | lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ | 211 | lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ |
251 | dir=$(localedir)/$$lang/LC_MESSAGES; \ | 212 | dir=$(localedir)/$$lang/LC_MESSAGES; \ |
252 | $(mkdir_p) $(DESTDIR)$$dir; \ | 213 | $(mkinstalldirs) $(DESTDIR)$$dir; \ |
253 | for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \ | 214 | for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \ |
254 | if test -n "$$lc"; then \ | 215 | if test -n "$$lc"; then \ |
255 | if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \ | 216 | if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \ |
@@ -324,14 +285,11 @@ dist distdir: | |||
324 | $(MAKE) update-po | 285 | $(MAKE) update-po |
325 | @$(MAKE) dist2 | 286 | @$(MAKE) dist2 |
326 | # This is a separate target because 'update-po' must be executed before. | 287 | # This is a separate target because 'update-po' must be executed before. |
327 | dist2: stamp-po $(DISTFILES) | 288 | dist2: $(DISTFILES) |
328 | dists="$(DISTFILES)"; \ | 289 | dists="$(DISTFILES)"; \ |
329 | if test "$(PACKAGE)" = "gettext-tools"; then \ | 290 | if test "$(PACKAGE)" = "gettext-tools"; then \ |
330 | dists="$$dists Makevars.template"; \ | 291 | dists="$$dists Makevars.template"; \ |
331 | fi; \ | 292 | fi; \ |
332 | if test -f $(srcdir)/$(DOMAIN).pot; then \ | ||
333 | dists="$$dists $(DOMAIN).pot stamp-po"; \ | ||
334 | fi; \ | ||
335 | if test -f $(srcdir)/ChangeLog; then \ | 293 | if test -f $(srcdir)/ChangeLog; then \ |
336 | dists="$$dists ChangeLog"; \ | 294 | dists="$$dists ChangeLog"; \ |
337 | fi; \ | 295 | fi; \ |
@@ -343,9 +301,9 @@ dist2: stamp-po $(DISTFILES) | |||
343 | if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \ | 301 | if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \ |
344 | for file in $$dists; do \ | 302 | for file in $$dists; do \ |
345 | if test -f $$file; then \ | 303 | if test -f $$file; then \ |
346 | cp -p $$file $(distdir) || exit 1; \ | 304 | cp -p $$file $(distdir); \ |
347 | else \ | 305 | else \ |
348 | cp -p $(srcdir)/$$file $(distdir) || exit 1; \ | 306 | cp -p $(srcdir)/$$file $(distdir); \ |
349 | fi; \ | 307 | fi; \ |
350 | done | 308 | done |
351 | 309 | ||
@@ -354,13 +312,6 @@ update-po: Makefile | |||
354 | test -z "$(UPDATEPOFILES)" || $(MAKE) $(UPDATEPOFILES) | 312 | test -z "$(UPDATEPOFILES)" || $(MAKE) $(UPDATEPOFILES) |
355 | $(MAKE) update-gmo | 313 | $(MAKE) update-gmo |
356 | 314 | ||
357 | # General rule for creating PO files. | ||
358 | |||
359 | .nop.po-create: | ||
360 | @lang=`echo $@ | sed -e 's/\.po-create$$//'`; \ | ||
361 | echo "File $$lang.po does not exist. If you are a translator, you can create it through 'msginit'." 1>&2; \ | ||
362 | exit 1 | ||
363 | |||
364 | # General rule for updating PO files. | 315 | # General rule for updating PO files. |
365 | 316 | ||
366 | .nop.po-update: | 317 | .nop.po-update: |
@@ -392,9 +343,10 @@ $(DUMMYPOFILES): | |||
392 | update-gmo: Makefile $(GMOFILES) | 343 | update-gmo: Makefile $(GMOFILES) |
393 | @: | 344 | @: |
394 | 345 | ||
395 | Makefile: Makefile.in.in Makevars $(top_builddir)/config.status @POMAKEFILEDEPS@ | 346 | Makefile: Makefile.in.in $(top_builddir)/config.status @POMAKEFILEDEPS@ |
396 | cd $(top_builddir) \ | 347 | cd $(top_builddir) \ |
397 | && $(SHELL) ./config.status $(subdir)/$@.in po-directories | 348 | && CONFIG_FILES=$(subdir)/$@.in CONFIG_HEADERS= \ |
349 | $(SHELL) ./config.status | ||
398 | 350 | ||
399 | force: | 351 | force: |
400 | 352 | ||