1
# Makefile for PO directory in any package using GNU gettext.
2
# Copyright (C) 1995-1997, 2000-2007, 2009-2010 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
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
6
# License but which still want to provide support for the GNU gettext
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.
11
# Origin: gettext-0.18
12
GETTEXT_MACRO_VERSION = 0.18
1
# Makefile for program source directory in GNU NLS utilities package.
2
# Copyright (C) 1995, 1996, 1997 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
3
# Copyright (C) 2004-2008 Rodney Dawes <dobey.pwns@gmail.com>
5
# This file may be copied and used freely without restrictions. It may
6
# be used in projects which are not available under a GNU Public License,
7
# but which still want to provide support for the GNU gettext functionality.
9
# - Modified by Owen Taylor <otaylor@redhat.com> to use GETTEXT_PACKAGE
10
# instead of PACKAGE and to look for po2tbl in ./ not in intl/
12
# - Modified by jacob berkman <jacob@ximian.com> to install
13
# Makefile.in.in and po2tbl.sed.in for use with glib-gettextize
15
# - Modified by Rodney Dawes <dobey.pwns@gmail.com> for use with intltool
17
# We have the following line for use by intltoolize:
20
GETTEXT_PACKAGE = audio-recorder
14
21
PACKAGE = audio-recorder
16
PACKAGE_BUGREPORT = https://bugs.launchpad.net/audio-recorder/+filebug
26
32
exec_prefix = ${prefix}
33
datadir = ${datarootdir}
27
34
datarootdir = ${prefix}/share
28
datadir = ${datarootdir}
29
localedir = ${datarootdir}/locale
30
gettextsrcdir = $(datadir)/gettext/po
35
libdir = ${exec_prefix}/lib
37
itlocaledir = $(prefix)/$(DATADIRNAME)/locale
39
install_sh = ${SHELL} /home/moma/dev/audio-recorder/install-sh
40
# Automake >= 1.8 provides /bin/mkdir -p.
41
# Until it can be supposed, use the safe fallback:
42
mkdir_p = $(install_sh) -d
32
44
INSTALL = /usr/bin/install -c
33
45
INSTALL_DATA = ${INSTALL} -m 644
36
# In automake <= 1.9.x, $(mkdir_p) is defined either as "mkdir -p --" or as
37
# "$(mkinstalldirs)" or as "$(install_sh) -d". For these automake versions,
38
# ${SHELL} /home/moma/audio-recorder/install-sh does not start with $(SHELL), so we add it.
39
# In automake >= 1.10, /bin/mkdir -p is derived from ${MKDIR_P}, which is defined
40
# either as "/path/to/mkdir -p" or ".../install-sh -c -d". For these automake
41
# versions, $(mkinstalldirs) and $(install_sh) are unused.
42
mkinstalldirs = $(SHELL) ${SHELL} /home/moma/audio-recorder/install-sh -d
43
install_sh = $(SHELL) ${SHELL} /home/moma/audio-recorder/install-sh
44
MKDIR_P = /bin/mkdir -p
45
mkdir_p = /bin/mkdir -p
47
GMSGFMT_ = /usr/bin/msgfmt
48
GMSGFMT_no = /usr/bin/msgfmt
49
GMSGFMT_yes = /usr/bin/msgfmt
50
GMSGFMT = $(GMSGFMT_$(USE_MSGCTXT))
51
MSGFMT_ = /usr/bin/msgfmt
52
MSGFMT_no = /usr/bin/msgfmt
53
MSGFMT_yes = /usr/bin/msgfmt
54
MSGFMT = $(MSGFMT_$(USE_MSGCTXT))
55
XGETTEXT_ = /usr/bin/xgettext
56
XGETTEXT_no = /usr/bin/xgettext
57
XGETTEXT_yes = /usr/bin/xgettext
58
XGETTEXT = $(XGETTEXT_$(USE_MSGCTXT))
60
MSGMERGE_UPDATE = /usr/bin/msgmerge --update
65
POFILES = cs.po de.po en_AU.po en_GB.po es.po eu.po fi.po fr.po hr.po hu.po it.po nb.po nl.po pl.po pt.po pt_BR.po ru.po sk.po sr.po tr.po uk.po vi.po
66
GMOFILES = cs.gmo de.gmo en_AU.gmo en_GB.gmo es.gmo eu.gmo fi.gmo fr.gmo hr.gmo hu.gmo it.gmo nb.gmo nl.gmo pl.gmo pt.gmo pt_BR.gmo ru.gmo sk.gmo sr.gmo tr.gmo uk.gmo vi.gmo
67
UPDATEPOFILES = cs.po-update de.po-update en_AU.po-update en_GB.po-update es.po-update eu.po-update fi.po-update fr.po-update hr.po-update hu.po-update it.po-update nb.po-update nl.po-update pl.po-update pt.po-update pt_BR.po-update ru.po-update sk.po-update sr.po-update tr.po-update uk.po-update vi.po-update
68
DUMMYPOFILES = cs.nop de.nop en_AU.nop en_GB.nop es.nop eu.nop fi.nop fr.nop hr.nop hu.nop it.nop nb.nop nl.nop pl.nop pt.nop pt_BR.nop ru.nop sk.nop sr.nop tr.nop uk.nop vi.nop
69
DISTFILES.common = Makefile.in.in remove-potcdate.sin \
70
$(DISTFILES.common.extra1) $(DISTFILES.common.extra2) $(DISTFILES.common.extra3)
71
DISTFILES = $(DISTFILES.common) Makevars POTFILES.in \
72
$(POFILES) $(GMOFILES) \
73
$(DISTFILES.extra1) $(DISTFILES.extra2) $(DISTFILES.extra3)
47
GMSGFMT = /usr/bin/msgfmt
48
MSGFMT = /usr/bin/msgfmt
49
XGETTEXT = /usr/bin/xgettext
50
INTLTOOL_UPDATE = /usr/bin/intltool-update
51
INTLTOOL_EXTRACT = /usr/bin/intltool-extract
52
MSGMERGE = INTLTOOL_EXTRACT="$(INTLTOOL_EXTRACT)" XGETTEXT="$(XGETTEXT)" srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --dist
53
GENPOT = INTLTOOL_EXTRACT="$(INTLTOOL_EXTRACT)" XGETTEXT="$(XGETTEXT)" srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --pot
55
ALL_LINGUAS = cs de en_AU en_GB es eu fi fr hr hu it nb nl pl pt pt_BR ru sk sr tr uk vi
57
PO_LINGUAS=$(shell if test -r $(srcdir)/LINGUAS; then grep -v "^\#" $(srcdir)/LINGUAS; else echo "$(ALL_LINGUAS)"; fi)
59
USER_LINGUAS=$(shell if test -n "$(LINGUAS)"; then LLINGUAS="$(LINGUAS)"; ALINGUAS="$(ALL_LINGUAS)"; for lang in $$LLINGUAS; do if test -n "`grep \^$$lang$$ $(srcdir)/LINGUAS 2>/dev/null`" -o -n "`echo $$ALINGUAS|tr ' ' '\n'|grep \^$$lang$$`"; then printf "$$lang "; fi; done; fi)
61
USE_LINGUAS=$(shell if test -n "$(USER_LINGUAS)" -o -n "$(LINGUAS)"; then LLINGUAS="$(USER_LINGUAS)"; else if test -n "$(PO_LINGUAS)"; then LLINGUAS="$(PO_LINGUAS)"; else LLINGUAS="$(ALL_LINGUAS)"; fi; fi; for lang in $$LLINGUAS; do printf "$$lang "; done)
63
POFILES=$(shell LINGUAS="$(PO_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.po "; done)
65
DISTFILES = Makefile.in.in POTFILES.in $(POFILES)
66
EXTRA_DISTFILES = ChangeLog POTFILES.skip Makevars LINGUAS
78
../src/audio-sources.c \
79
../src/audio-sources.h \
83
../src/dbus-mpris2.c \
84
../src/dbus-mpris2.h \
85
../src/dbus-player.c \
86
../src/dbus-player.h \
87
../src/dbus-server.c \
88
../src/dbus-server.h \
93
../src/gst-listener.c \
94
../src/gst-listener.h \
95
../src/gst-pipeline.c \
96
../src/gst-pipeline.h \
97
../src/gst-recorder.c \
98
../src/gst-recorder.h \
99
../src/gtklevelbar.c \
100
../src/gtklevelbar.h \
106
../src/media-profiles.c \
107
../src/media-profiles.h \
108
../src/pulseaudio.c \
109
../src/pulseaudio.h \
110
../src/rec-manager.c \
111
../src/rec-manager.h \
112
../src/rec-window.h \
113
../src/skype-service.c \
114
../src/skype-service.h \
115
../src/skype-service-object-glue.h \
118
../src/systray-icon.c \
121
../src/timer-parser.c \
124
../src/win-settings.c \
125
../src/win-settings.h
127
CATALOGS = cs.gmo de.gmo en_AU.gmo en_GB.gmo es.gmo eu.gmo fi.gmo fr.gmo hr.gmo hu.gmo it.gmo nb.gmo nl.gmo pl.gmo pt.gmo pt_BR.gmo ru.gmo sk.gmo sr.gmo tr.gmo uk.gmo vi.gmo
129
# Makevars gets inserted here. (Don't remove this line!)
130
# Makefile variables for PO directory in any package using GNU gettext.
132
# Usually the message domain is the same as the package name.
135
# These two variables depend on the location of this directory.
139
# These options get passed to xgettext.
140
XGETTEXT_OPTIONS = --keyword=_ --keyword=N_
142
# This is the copyright holder that gets inserted into the header of the
143
# $(DOMAIN).pot file. Set this to the copyright holder of the surrounding
144
# package. (Note that the msgstr strings, extracted from the package's
145
# sources, belong to the copyright holder of the package.) Translators are
146
# expected to transfer the copyright for their translations to this person
147
# or entity, or to disclaim their copyright. The empty string stands for
148
# the public domain; in this case the translators are expected to disclaim
150
COPYRIGHT_HOLDER = Free Software Foundation, Inc.
152
# This is the email address or URL to which the translators shall report
153
# bugs in the untranslated strings:
154
# - Strings which are not entire sentences, see the maintainer guidelines
155
# in the GNU gettext documentation, section 'Preparing Strings'.
156
# - Strings which use unclear terms or require additional context to be
158
# - Strings which make invalid assumptions about notation of date, time or
160
# - Pluralisation problems.
161
# - Incorrect English spelling.
162
# - Incorrect formatting.
163
# It can be your email address, or a mailing list address where translators
164
# can write to without being subscribed, or the URL of a web page through
165
# which the translators can contact you.
168
# This is the list of locale categories, beyond LC_MESSAGES, for which the
169
# message catalogs shall be used. It is usually empty.
170
EXTRA_LOCALE_CATEGORIES =
71
../src/audio-sources.c \
72
../src/audio-sources.h \
76
../src/dbus-mpris2.c \
77
../src/dbus-mpris2.h \
78
../src/dbus-player.c \
79
../src/dbus-player.h \
80
../src/dbus-server.c \
81
../src/dbus-server.h \
88
../src/gst-pipeline.c \
89
../src/gst-pipeline.h \
90
../src/gst-recorder.c \
91
../src/gst-recorder.h \
92
../src/gtklevelbar.c \
93
../src/gtklevelbar.h \
99
../src/media-profiles.c \
100
../src/media-profiles.h \
101
../src/pulseaudio.c \
102
../src/pulseaudio.h \
103
../src/rec-manager.c \
104
../src/rec-manager.h \
105
../src/rec-manager-struct.h \
106
../src/rec-window.h \
107
../src/skype-service.c \
108
../src/skype-service.h \
109
../src/skype-service-object-glue.h \
112
../src/systray-icon.c \
115
../src/timer-parser.c \
118
../src/win-settings.c \
119
../src/win-settings.h
121
CATALOGS=$(shell LINGUAS="$(USE_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.gmo "; done)
173
.SUFFIXES: .po .gmo .mo .sed .sin .nop .po-create .po-update
124
.SUFFIXES: .po .pox .gmo .mo .msg .cat
126
AM_DEFAULT_VERBOSITY = 1
127
INTLTOOL_V_MSGFMT = $(INTLTOOL__v_MSGFMT_$(V))
128
INTLTOOL__v_MSGFMT_= $(INTLTOOL__v_MSGFMT_$(AM_DEFAULT_VERBOSITY))
129
INTLTOOL__v_MSGFMT_0 = @echo " MSGFMT" $@;
132
$(MAKE) $(GETTEXT_PACKAGE).pot
133
$(MSGMERGE) $< $(GETTEXT_PACKAGE).pot -o $*.pox
176
@echo "$(MSGFMT) -c -o $@ $<"; \
177
$(MSGFMT) -c -o t-$@ $< && mv t-$@ $@
136
$(INTLTOOL_V_MSGFMT)$(MSGFMT) -o $@ $<
180
@lang=`echo $* | sed -e 's,.*/,,'`; \
181
test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
182
echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o $${lang}.gmo $${lang}.po"; \
183
cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo
186
sed -e '/^#/d' $< > t-$@
190
all: check-macro-version all-yes
139
$(INTLTOOL_V_MSGFMT)file=`echo $* | sed 's,.*/,,'`.gmo \
140
&& rm -f $$file && $(GMSGFMT) -o $$file $<
143
sed -f ../intl/po2msg.sed < $< > $*.msg \
144
&& rm -f $@ && gencat $@ $*.msg
195
# Ensure that the gettext macros and this Makefile.in.in are in sync.
197
@test "$(GETTEXT_MACRO_VERSION)" = "0.18" \
198
|| { echo "*** error: gettext infrastructure mismatch: using a Makefile.in.in from gettext version $(GETTEXT_MACRO_VERSION) but the autoconf macros are from gettext version 0.18" 1>&2; \
202
# $(srcdir)/$(DOMAIN).pot is only created when needed. When xgettext finds no
203
# internationalized messages, no $(srcdir)/$(DOMAIN).pot is created (because
204
# we don't want to bother translators with empty POT files). We assume that
205
# LINGUAS is empty in this case, i.e. $(POFILES) and $(GMOFILES) are empty.
206
# In this case, stamp-po is a nop (i.e. a phony target).
208
# stamp-po is a timestamp denoting the last time at which the CATALOGS have
209
# been loosely updated. Its purpose is that when a developer or translator
210
# checks out the package via CVS, and the $(DOMAIN).pot file is not in CVS,
211
# "make" will update the $(DOMAIN).pot and the $(CATALOGS), but subsequent
212
# invocations of "make" will do nothing. This timestamp would not be necessary
213
# if updating the $(CATALOGS) would always touch them; however, the rule for
214
# $(POFILES) has been designed to not touch files that don't need to be
216
stamp-po: $(srcdir)/$(DOMAIN).pot
217
test ! -f $(srcdir)/$(DOMAIN).pot || \
218
test -z "$(GMOFILES)" || $(MAKE) $(GMOFILES)
219
@test ! -f $(srcdir)/$(DOMAIN).pot || { \
220
echo "touch stamp-po" && \
221
echo timestamp > stamp-poT && \
222
mv stamp-poT stamp-po; \
225
# Note: Target 'all' must not depend on target '$(DOMAIN).pot-update',
226
# otherwise packages like GCC can not be built if only parts of the source
227
# have been downloaded.
229
# This target rebuilds $(DOMAIN).pot; it is an expensive operation.
230
# Note that $(DOMAIN).pot is not touched if it doesn't need to be changed.
231
$(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed
232
if LC_ALL=C grep 'GNU audio-recorder' $(top_srcdir)/* 2>/dev/null | grep -v 'libtool:' >/dev/null; then \
233
package_gnu='GNU '; \
237
if test -n '$(MSGID_BUGS_ADDRESS)' || test '$(PACKAGE_BUGREPORT)' = '@'PACKAGE_BUGREPORT'@'; then \
238
msgid_bugs_address='$(MSGID_BUGS_ADDRESS)'; \
240
msgid_bugs_address='$(PACKAGE_BUGREPORT)'; \
242
case `$(XGETTEXT) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \
243
'' | 0.[0-9] | 0.[0-9].* | 0.1[0-5] | 0.1[0-5].* | 0.16 | 0.16.[0-1]*) \
244
$(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \
245
--add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) \
246
--files-from=$(srcdir)/POTFILES.in \
247
--copyright-holder='$(COPYRIGHT_HOLDER)' \
248
--msgid-bugs-address="$$msgid_bugs_address" \
251
$(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \
252
--add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) \
253
--files-from=$(srcdir)/POTFILES.in \
254
--copyright-holder='$(COPYRIGHT_HOLDER)' \
255
--package-name="$${package_gnu}audio-recorder" \
256
--package-version='0.9.1' \
257
--msgid-bugs-address="$$msgid_bugs_address" \
260
test ! -f $(DOMAIN).po || { \
261
if test -f $(srcdir)/$(DOMAIN).pot; then \
262
sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \
263
sed -f remove-potcdate.sed < $(DOMAIN).po > $(DOMAIN).2po && \
264
if cmp $(DOMAIN).1po $(DOMAIN).2po >/dev/null 2>&1; then \
265
rm -f $(DOMAIN).1po $(DOMAIN).2po $(DOMAIN).po; \
267
rm -f $(DOMAIN).1po $(DOMAIN).2po $(srcdir)/$(DOMAIN).pot && \
268
mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \
271
mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \
275
# This rule has no dependencies: we don't need to update $(DOMAIN).pot at
276
# every "make" invocation, only create it when it is missing.
277
# Only "make $(DOMAIN).pot-update" or "make dist" will force an update.
278
$(srcdir)/$(DOMAIN).pot:
279
$(MAKE) $(DOMAIN).pot-update
281
# This target rebuilds a PO file if $(DOMAIN).pot has changed.
282
# Note that a PO file is not touched if it doesn't need to be changed.
283
$(POFILES): $(srcdir)/$(DOMAIN).pot
284
@lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \
285
if test -f "$(srcdir)/$${lang}.po"; then \
286
test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
287
echo "$${cdcmd}$(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot"; \
289
&& { case `$(MSGMERGE_UPDATE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \
290
'' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \
291
$(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) $${lang}.po $(DOMAIN).pot;; \
293
$(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot;; \
297
$(MAKE) $${lang}.po-create; \
301
install: install-exec install-data
152
$(GETTEXT_PACKAGE).pot: $(POTFILES)
155
install: install-data
303
156
install-data: install-data-yes
304
if test "$(PACKAGE)" = "gettext-tools"; then \
305
$(mkdir_p) $(DESTDIR)$(gettextsrcdir); \
306
for file in $(DISTFILES.common) Makevars.template; do \
307
$(INSTALL_DATA) $(srcdir)/$$file \
308
$(DESTDIR)$(gettextsrcdir)/$$file; \
310
for file in Makevars; do \
311
rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
316
157
install-data-no: all
317
158
install-data-yes: all
318
@catalogs='$(CATALOGS)'; \
319
for cat in $$catalogs; do \
320
cat=`basename $$cat`; \
321
lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
322
dir=$(localedir)/$$lang/LC_MESSAGES; \
323
$(mkdir_p) $(DESTDIR)$$dir; \
324
if test -r $$cat; then realcat=$$cat; else realcat=$(srcdir)/$$cat; fi; \
325
$(INSTALL_DATA) $$realcat $(DESTDIR)$$dir/$(DOMAIN).mo; \
326
echo "installing $$realcat as $(DESTDIR)$$dir/$(DOMAIN).mo"; \
327
for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \
328
if test -n "$$lc"; then \
329
if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \
330
link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \
331
mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
332
mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
333
(cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \
335
if test -f $$file; then \
336
ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \
339
rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
341
if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \
344
rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \
345
mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
348
rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
349
ln -s ../LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \
350
ln $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \
351
cp -p $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
352
echo "installing $$realcat link as $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo"; \
357
install-strip: install
359
installdirs: installdirs-exec installdirs-data
361
installdirs-data: installdirs-data-yes
362
if test "$(PACKAGE)" = "gettext-tools"; then \
363
$(mkdir_p) $(DESTDIR)$(gettextsrcdir); \
368
installdirs-data-yes:
369
@catalogs='$(CATALOGS)'; \
370
for cat in $$catalogs; do \
371
cat=`basename $$cat`; \
372
lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
373
dir=$(localedir)/$$lang/LC_MESSAGES; \
374
$(mkdir_p) $(DESTDIR)$$dir; \
375
for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \
376
if test -n "$$lc"; then \
377
if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \
378
link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \
379
mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
380
mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
381
(cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \
383
if test -f $$file; then \
384
ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \
387
rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
389
if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \
392
rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \
393
mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
159
linguas="$(USE_LINGUAS)"; \
160
for lang in $$linguas; do \
161
dir=$(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES; \
163
if test -r $$lang.gmo; then \
164
$(INSTALL_DATA) $$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \
165
echo "installing $$lang.gmo as $$dir/$(GETTEXT_PACKAGE).mo"; \
167
$(INSTALL_DATA) $(srcdir)/$$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \
168
echo "installing $(srcdir)/$$lang.gmo as" \
169
"$$dir/$(GETTEXT_PACKAGE).mo"; \
171
if test -r $$lang.gmo.m; then \
172
$(INSTALL_DATA) $$lang.gmo.m $$dir/$(GETTEXT_PACKAGE).mo.m; \
173
echo "installing $$lang.gmo.m as $$dir/$(GETTEXT_PACKAGE).mo.m"; \
175
if test -r $(srcdir)/$$lang.gmo.m ; then \
176
$(INSTALL_DATA) $(srcdir)/$$lang.gmo.m \
177
$$dir/$(GETTEXT_PACKAGE).mo.m; \
178
echo "installing $(srcdir)/$$lang.gmo.m as" \
179
"$$dir/$(GETTEXT_PACKAGE).mo.m"; \
186
# Empty stubs to satisfy archaic automake needs
187
dvi info ctags tags CTAGS TAGS ID:
400
189
# Define this as empty until I found a useful application.
403
uninstall: uninstall-exec uninstall-data
405
uninstall-data: uninstall-data-yes
406
if test "$(PACKAGE)" = "gettext-tools"; then \
407
for file in $(DISTFILES.common) Makevars.template; do \
408
rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
190
install-exec installcheck:
193
linguas="$(USE_LINGUAS)"; \
194
for lang in $$linguas; do \
195
rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo; \
196
rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo.m; \
199
check: all $(GETTEXT_PACKAGE).pot
200
rm -f missing notexist
201
srcdir=$(srcdir) $(INTLTOOL_UPDATE) -m
202
if [ -r missing -o -r notexist ]; then \
415
catalogs='$(CATALOGS)'; \
416
for cat in $$catalogs; do \
417
cat=`basename $$cat`; \
418
lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
419
for lc in LC_MESSAGES $(EXTRA_LOCALE_CATEGORIES); do \
420
rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
426
info dvi ps pdf html tags TAGS ctags CTAGS ID:
429
rm -f remove-potcdate.sed
431
rm -f core core.* $(DOMAIN).po $(DOMAIN).1po $(DOMAIN).2po *.new.po
207
rm -f *.pox $(GETTEXT_PACKAGE).pot *.old.po cat-id-tbl.tmp
208
rm -f .intltool-merge-cache
434
210
clean: mostlyclean
437
rm -f Makefile Makefile.in POTFILES *.mo
213
rm -f Makefile Makefile.in POTFILES stamp-it
214
rm -f *.mo *.msg *.cat *.cat.m *.gmo
439
216
maintainer-clean: distclean
440
217
@echo "This command is intended for maintainers to use;"
441
218
@echo "it deletes files that may require special tools to rebuild."
442
rm -f stamp-po $(GMOFILES)
444
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
448
# This is a separate target because 'update-po' must be executed before.
449
dist2: stamp-po $(DISTFILES)
221
distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
222
dist distdir: $(DISTFILES)
450
223
dists="$(DISTFILES)"; \
451
if test "$(PACKAGE)" = "gettext-tools"; then \
452
dists="$$dists Makevars.template"; \
454
if test -f $(srcdir)/$(DOMAIN).pot; then \
455
dists="$$dists $(DOMAIN).pot stamp-po"; \
457
if test -f $(srcdir)/ChangeLog; then \
458
dists="$$dists ChangeLog"; \
460
for i in 0 1 2 3 4 5 6 7 8 9; do \
461
if test -f $(srcdir)/ChangeLog.$$i; then \
462
dists="$$dists ChangeLog.$$i"; \
224
extra_dists="$(EXTRA_DISTFILES)"; \
225
for file in $$extra_dists; do \
226
test -f $(srcdir)/$$file && dists="$$dists $(srcdir)/$$file"; \
465
if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \
466
228
for file in $$dists; do \
467
if test -f $$file; then \
468
cp -p $$file $(distdir) || exit 1; \
470
cp -p $(srcdir)/$$file $(distdir) || exit 1; \
229
test -f $$file || file="$(srcdir)/$$file"; \
230
ln $$file $(distdir) 2> /dev/null \
231
|| cp -p $$file $(distdir); \
474
234
update-po: Makefile
475
$(MAKE) $(DOMAIN).pot-update
476
test -z "$(UPDATEPOFILES)" || $(MAKE) $(UPDATEPOFILES)
479
# General rule for creating PO files.
482
@lang=`echo $@ | sed -e 's/\.po-create$$//'`; \
483
echo "File $$lang.po does not exist. If you are a translator, you can create it through 'msginit'." 1>&2; \
486
# General rule for updating PO files.
489
@lang=`echo $@ | sed -e 's/\.po-update$$//'`; \
490
if test "$(PACKAGE)" = "gettext-tools"; then PATH=`pwd`/../src:$$PATH; fi; \
235
$(MAKE) $(GETTEXT_PACKAGE).pot
493
test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
494
echo "$${cdcmd}$(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \
496
if { case `$(MSGMERGE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \
497
'' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \
498
$(MSGMERGE) $(MSGMERGE_OPTIONS) -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \
500
$(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \
503
if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
237
linguas="$(USE_LINGUAS)"; \
238
for lang in $$linguas; do \
240
result="`$(MSGMERGE) -o $$tmpdir/$$lang.new.po $$lang`"; \
242
if cmp $(srcdir)/$$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
243
rm -f $$tmpdir/$$lang.new.po; \
245
if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
248
echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
249
rm -f $$tmpdir/$$lang.new.po; \
254
echo "msgmerge for $$lang.gmo failed!"; \
504
255
rm -f $$tmpdir/$$lang.new.po; \
506
if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
509
echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
514
echo "msgmerge for $$lang.po failed!" 1>&2; \
515
rm -f $$tmpdir/$$lang.new.po; \
259
Makefile POTFILES: stamp-it
260
@if test ! -f $@; then \
520
update-gmo: Makefile $(GMOFILES)
523
# Recreate Makefile by invoking config.status. Explicitly invoke the shell,
524
# because execution permission bits may not work on the current file system.
525
# Use /bin/bash, which is the shell determined by autoconf for the use by its
526
# scripts, not $(SHELL) which is hardwired to /bin/sh and may be deficient.
527
Makefile: Makefile.in.in Makevars $(top_builddir)/config.status POTFILES.in
265
stamp-it: Makefile.in.in $(top_builddir)/config.status POTFILES.in
528
266
cd $(top_builddir) \
529
&& /bin/bash ./config.status $(subdir)/$@.in po-directories
267
&& CONFIG_FILES=$(subdir)/Makefile.in CONFIG_HEADERS= CONFIG_LINKS= \
268
$(SHELL) ./config.status
533
270
# Tell versions [3.59,3.63) of GNU make not to export all variables.
534
271
# Otherwise a system limit (for SysV at least) may be exceeded.