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
14
PACKAGE = audio-recorder
16
PACKAGE_BUGREPORT = https://bugs.launchpad.net/audio-recorder/+filebug
26
exec_prefix = ${prefix}
27
datarootdir = ${prefix}/share
28
datadir = ${datarootdir}
29
localedir = ${datarootdir}/locale
30
gettextsrcdir = $(datadir)/gettext/po
32
INSTALL = /usr/bin/install -c
33
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)
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 =
173
.SUFFIXES: .po .gmo .mo .sed .sin .nop .po-create .po-update
176
@echo "$(MSGFMT) -c -o $@ $<"; \
177
$(MSGFMT) -c -o t-$@ $< && mv t-$@ $@
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
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.8' \
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
303
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; \
317
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; \
400
# 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; \
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
437
rm -f Makefile Makefile.in POTFILES *.mo
439
maintainer-clean: distclean
440
@echo "This command is intended for maintainers to use;"
441
@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)
450
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"; \
465
if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \
466
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; \
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; \
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 \
504
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; \
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
529
&& /bin/bash ./config.status $(subdir)/$@.in po-directories
533
# Tell versions [3.59,3.63) of GNU make not to export all variables.
534
# Otherwise a system limit (for SysV at least) may be exceeded.