~audio-recorder/audio-recorder/trunk

« back to all changes in this revision

Viewing changes to po/Makefile

  • Committer: Osmo Antero
  • Date: 2012-09-29 18:12:44 UTC
  • Revision ID: osmoma@gmail.com-20120929181244-gmrxd5xww9pua60a
Support new systems; Ubuntu 12.10, Fedora 18. Improved timer and VAD-modules. Better gst-pipeline.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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>
3
 
#
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
7
 
# functionality.
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.
10
 
#
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>
 
4
#
 
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.
 
8
#
 
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/
 
11
#
 
12
# - Modified by jacob berkman <jacob@ximian.com> to install
 
13
#   Makefile.in.in and po2tbl.sed.in for use with glib-gettextize
 
14
#
 
15
# - Modified by Rodney Dawes <dobey.pwns@gmail.com> for use with intltool
 
16
#
 
17
# We have the following line for use by intltoolize:
 
18
# INTLTOOL_MAKEFILE
13
19
 
 
20
GETTEXT_PACKAGE = audio-recorder
14
21
PACKAGE = audio-recorder
15
22
VERSION = 0.9.1
16
 
PACKAGE_BUGREPORT = https://bugs.launchpad.net/audio-recorder/+filebug
17
 
 
18
 
SHELL = /bin/sh
19
 
 
 
23
 
 
24
SHELL = /bin/bash
20
25
 
21
26
srcdir = .
22
27
top_srcdir = ..
 
28
top_builddir = ..
23
29
 
24
30
 
25
31
prefix = /usr
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
 
36
DATADIRNAME = share
 
37
itlocaledir = $(prefix)/$(DATADIRNAME)/locale
 
38
subdir = po
 
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
31
43
 
32
44
INSTALL = /usr/bin/install -c
33
45
INSTALL_DATA = ${INSTALL} -m 644
34
46
 
35
 
# We use $(mkdir_p).
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
46
 
 
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))
59
 
MSGMERGE = msgmerge
60
 
MSGMERGE_UPDATE = /usr/bin/msgmerge --update
61
 
MSGINIT = msginit
62
 
MSGCONV = msgconv
63
 
MSGFILTER = msgfilter
64
 
 
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
 
54
 
 
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
 
56
 
 
57
PO_LINGUAS=$(shell if test -r $(srcdir)/LINGUAS; then grep -v "^\#" $(srcdir)/LINGUAS; else echo "$(ALL_LINGUAS)"; fi)
 
58
 
 
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)
 
60
 
 
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)
 
62
 
 
63
POFILES=$(shell LINGUAS="$(PO_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.po "; done)
 
64
 
 
65
DISTFILES = Makefile.in.in POTFILES.in $(POFILES)
 
66
EXTRA_DISTFILES = ChangeLog POTFILES.skip Makevars LINGUAS
74
67
 
75
68
POTFILES = \
76
 
     ../src/about.c \
77
 
     ../src/about.h \
78
 
     ../src/audio-sources.c \
79
 
     ../src/audio-sources.h \
80
 
     ../src/auto-start.c \
81
 
     ../src/auto-start.h \
82
 
     ../src/config.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 \
89
 
     ../src/dbus-skype.c \
90
 
     ../src/dbus-skype.h \
91
 
     ../src/dconf.c \
92
 
     ../src/dconf.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 \
101
 
     ../src/help.c \
102
 
     ../src/help.h \
103
 
     ../src/log.c \
104
 
     ../src/log.h \
105
 
     ../src/main.c \
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 \
116
 
     ../src/support.c \
117
 
     ../src/support.h \
118
 
     ../src/systray-icon.c \
119
 
     ../src/timer.c \
120
 
     ../src/timer.h \
121
 
     ../src/timer-parser.c \
122
 
     ../src/utility.c \
123
 
     ../src/utility.h \
124
 
     ../src/win-settings.c \
125
 
     ../src/win-settings.h
126
 
 
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
128
 
 
129
 
# Makevars gets inserted here. (Don't remove this line!)
130
 
# Makefile variables for PO directory in any package using GNU gettext.
131
 
 
132
 
# Usually the message domain is the same as the package name.
133
 
DOMAIN = $(PACKAGE)
134
 
 
135
 
# These two variables depend on the location of this directory.
136
 
subdir = po
137
 
top_builddir = ..
138
 
 
139
 
# These options get passed to xgettext.
140
 
XGETTEXT_OPTIONS = --keyword=_ --keyword=N_
141
 
 
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
149
 
# their copyright.
150
 
COPYRIGHT_HOLDER = Free Software Foundation, Inc.
151
 
 
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
157
 
#   understood.
158
 
# - Strings which make invalid assumptions about notation of date, time or
159
 
#   money.
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.
166
 
MSGID_BUGS_ADDRESS =
167
 
 
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 =
 
69
        ../src/about.c \
 
70
        ../src/about.h \
 
71
        ../src/audio-sources.c \
 
72
        ../src/audio-sources.h \
 
73
        ../src/auto-start.c \
 
74
        ../src/auto-start.h \
 
75
        ../src/config.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 \
 
82
        ../src/dbus-skype.c \
 
83
        ../src/dbus-skype.h \
 
84
        ../src/dconf.c \
 
85
        ../src/dconf.h \
 
86
        ../src/gst-vad.c \
 
87
        ../src/gst-vad.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 \
 
94
        ../src/help.c \
 
95
        ../src/help.h \
 
96
        ../src/log.c \
 
97
        ../src/log.h \
 
98
        ../src/main.c \
 
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 \
 
110
        ../src/support.c \
 
111
        ../src/support.h \
 
112
        ../src/systray-icon.c \
 
113
        ../src/timer.c \
 
114
        ../src/timer.h \
 
115
        ../src/timer-parser.c \
 
116
        ../src/utility.c \
 
117
        ../src/utility.h \
 
118
        ../src/win-settings.c \
 
119
        ../src/win-settings.h
 
120
 
 
121
CATALOGS=$(shell LINGUAS="$(USE_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.gmo "; done)
171
122
 
172
123
.SUFFIXES:
173
 
.SUFFIXES: .po .gmo .mo .sed .sin .nop .po-create .po-update
 
124
.SUFFIXES: .po .pox .gmo .mo .msg .cat
 
125
 
 
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" $@;
 
130
 
 
131
.po.pox:
 
132
        $(MAKE) $(GETTEXT_PACKAGE).pot
 
133
        $(MSGMERGE) $< $(GETTEXT_PACKAGE).pot -o $*.pox
174
134
 
175
135
.po.mo:
176
 
        @echo "$(MSGFMT) -c -o $@ $<"; \
177
 
        $(MSGFMT) -c -o t-$@ $< && mv t-$@ $@
 
136
        $(INTLTOOL_V_MSGFMT)$(MSGFMT) -o $@ $<
178
137
 
179
138
.po.gmo:
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
184
 
 
185
 
.sin.sed:
186
 
        sed -e '/^#/d' $< > t-$@
187
 
        mv t-$@ $@
188
 
 
189
 
 
190
 
all: check-macro-version all-yes
191
 
 
192
 
all-yes: stamp-po
 
139
        $(INTLTOOL_V_MSGFMT)file=`echo $* | sed 's,.*/,,'`.gmo \
 
140
          && rm -f $$file && $(GMSGFMT) -o $$file $<
 
141
 
 
142
.po.cat:
 
143
        sed -f ../intl/po2msg.sed < $< > $*.msg \
 
144
          && rm -f $@ && gencat $@ $*.msg
 
145
 
 
146
 
 
147
all: all-yes
 
148
 
 
149
all-yes: $(CATALOGS)
193
150
all-no:
194
151
 
195
 
# Ensure that the gettext macros and this Makefile.in.in are in sync.
196
 
check-macro-version:
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; \
199
 
               exit 1; \
200
 
             }
201
 
 
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).
207
 
 
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
215
 
# changed.
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; \
223
 
        }
224
 
 
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.
228
 
 
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 '; \
234
 
        else \
235
 
          package_gnu=''; \
236
 
        fi; \
237
 
        if test -n '$(MSGID_BUGS_ADDRESS)' || test '$(PACKAGE_BUGREPORT)' = '@'PACKAGE_BUGREPORT'@'; then \
238
 
          msgid_bugs_address='$(MSGID_BUGS_ADDRESS)'; \
239
 
        else \
240
 
          msgid_bugs_address='$(PACKAGE_BUGREPORT)'; \
241
 
        fi; \
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" \
249
 
            ;; \
250
 
          *) \
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" \
258
 
            ;; \
259
 
        esac
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; \
266
 
            else \
267
 
              rm -f $(DOMAIN).1po $(DOMAIN).2po $(srcdir)/$(DOMAIN).pot && \
268
 
              mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \
269
 
            fi; \
270
 
          else \
271
 
            mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \
272
 
          fi; \
273
 
        }
274
 
 
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
280
 
 
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"; \
288
 
          cd $(srcdir) \
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;; \
292
 
                   *) \
293
 
                     $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot;; \
294
 
                 esac; \
295
 
               }; \
296
 
        else \
297
 
          $(MAKE) $${lang}.po-create; \
298
 
        fi
299
 
 
300
 
 
301
 
install: install-exec install-data
302
 
install-exec:
 
152
$(GETTEXT_PACKAGE).pot: $(POTFILES)
 
153
        $(GENPOT)
 
154
 
 
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; \
309
 
          done; \
310
 
          for file in Makevars; do \
311
 
            rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
312
 
          done; \
313
 
        else \
314
 
          : ; \
315
 
        fi
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 && \
334
 
                 for file in *; do \
335
 
                   if test -f $$file; then \
336
 
                     ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \
337
 
                   fi; \
338
 
                 done); \
339
 
                rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
340
 
              else \
341
 
                if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \
342
 
                  :; \
343
 
                else \
344
 
                  rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \
345
 
                  mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
346
 
                fi; \
347
 
              fi; \
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"; \
353
 
            fi; \
354
 
          done; \
355
 
        done
356
 
 
357
 
install-strip: install
358
 
 
359
 
installdirs: installdirs-exec installdirs-data
360
 
installdirs-exec:
361
 
installdirs-data: installdirs-data-yes
362
 
        if test "$(PACKAGE)" = "gettext-tools"; then \
363
 
          $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \
364
 
        else \
365
 
          : ; \
366
 
        fi
367
 
installdirs-data-no:
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 && \
382
 
                 for file in *; do \
383
 
                   if test -f $$file; then \
384
 
                     ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \
385
 
                   fi; \
386
 
                 done); \
387
 
                rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
388
 
              else \
389
 
                if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \
390
 
                  :; \
391
 
                else \
392
 
                  rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \
393
 
                  mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
394
 
                fi; \
395
 
              fi; \
396
 
            fi; \
397
 
          done; \
398
 
        done
 
159
        linguas="$(USE_LINGUAS)"; \
 
160
        for lang in $$linguas; do \
 
161
          dir=$(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES; \
 
162
          $(mkdir_p) $$dir; \
 
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"; \
 
166
          else \
 
167
            $(INSTALL_DATA) $(srcdir)/$$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \
 
168
            echo "installing $(srcdir)/$$lang.gmo as" \
 
169
                 "$$dir/$(GETTEXT_PACKAGE).mo"; \
 
170
          fi; \
 
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"; \
 
174
          else \
 
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"; \
 
180
            else \
 
181
              true; \
 
182
            fi; \
 
183
          fi; \
 
184
        done
 
185
 
 
186
# Empty stubs to satisfy archaic automake needs
 
187
dvi info ctags tags CTAGS TAGS ID:
399
188
 
400
189
# Define this as empty until I found a useful application.
401
 
installcheck:
402
 
 
403
 
uninstall: uninstall-exec uninstall-data
404
 
uninstall-exec:
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; \
409
 
          done; \
410
 
        else \
411
 
          : ; \
 
190
install-exec installcheck:
 
191
 
 
192
uninstall:
 
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; \
 
197
        done
 
198
 
 
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 \
 
203
          exit 1; \
412
204
        fi
413
 
uninstall-data-no:
414
 
uninstall-data-yes:
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; \
421
 
          done; \
422
 
        done
423
 
 
424
 
check: all
425
 
 
426
 
info dvi ps pdf html tags TAGS ctags CTAGS ID:
427
205
 
428
206
mostlyclean:
429
 
        rm -f remove-potcdate.sed
430
 
        rm -f stamp-poT
431
 
        rm -f core core.* $(DOMAIN).po $(DOMAIN).1po $(DOMAIN).2po *.new.po
432
 
        rm -fr *.o
 
207
        rm -f *.pox $(GETTEXT_PACKAGE).pot *.old.po cat-id-tbl.tmp
 
208
        rm -f .intltool-merge-cache
433
209
 
434
210
clean: mostlyclean
435
211
 
436
212
distclean: clean
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
438
215
 
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)
 
219
        rm -f Makefile.in.in
443
220
 
444
 
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
445
 
dist distdir:
446
 
        $(MAKE) update-po
447
 
        @$(MAKE) dist2
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"; \
453
 
        fi; \
454
 
        if test -f $(srcdir)/$(DOMAIN).pot; then \
455
 
          dists="$$dists $(DOMAIN).pot stamp-po"; \
456
 
        fi; \
457
 
        if test -f $(srcdir)/ChangeLog; then \
458
 
          dists="$$dists ChangeLog"; \
459
 
        fi; \
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"; \
463
 
          fi; \
 
224
        extra_dists="$(EXTRA_DISTFILES)"; \
 
225
        for file in $$extra_dists; do \
 
226
          test -f $(srcdir)/$$file && dists="$$dists $(srcdir)/$$file"; \
464
227
        done; \
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; \
469
 
          else \
470
 
            cp -p $(srcdir)/$$file $(distdir) || exit 1; \
471
 
          fi; \
 
229
          test -f $$file || file="$(srcdir)/$$file"; \
 
230
          ln $$file $(distdir) 2> /dev/null \
 
231
            || cp -p $$file $(distdir); \
472
232
        done
473
233
 
474
234
update-po: Makefile
475
 
        $(MAKE) $(DOMAIN).pot-update
476
 
        test -z "$(UPDATEPOFILES)" || $(MAKE) $(UPDATEPOFILES)
477
 
        $(MAKE) update-gmo
478
 
 
479
 
# General rule for creating PO files.
480
 
 
481
 
.nop.po-create:
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; \
484
 
        exit 1
485
 
 
486
 
# General rule for updating PO files.
487
 
 
488
 
.nop.po-update:
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
491
236
        tmpdir=`pwd`; \
492
 
        echo "$$lang:"; \
493
 
        test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
494
 
        echo "$${cdcmd}$(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \
495
 
        cd $(srcdir); \
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;; \
499
 
               *) \
500
 
                 $(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \
501
 
             esac; \
502
 
           }; then \
503
 
          if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
 
237
        linguas="$(USE_LINGUAS)"; \
 
238
        for lang in $$linguas; do \
 
239
          echo "$$lang:"; \
 
240
          result="`$(MSGMERGE) -o $$tmpdir/$$lang.new.po $$lang`"; \
 
241
          if $$result; then \
 
242
            if cmp $(srcdir)/$$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
 
243
              rm -f $$tmpdir/$$lang.new.po; \
 
244
            else \
 
245
              if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
 
246
                :; \
 
247
              else \
 
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; \
 
250
                exit 1; \
 
251
              fi; \
 
252
            fi; \
 
253
          else \
 
254
            echo "msgmerge for $$lang.gmo failed!"; \
504
255
            rm -f $$tmpdir/$$lang.new.po; \
505
 
          else \
506
 
            if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
507
 
              :; \
508
 
            else \
509
 
              echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
510
 
              exit 1; \
511
 
            fi; \
512
256
          fi; \
513
 
        else \
514
 
          echo "msgmerge for $$lang.po failed!" 1>&2; \
515
 
          rm -f $$tmpdir/$$lang.new.po; \
 
257
        done
 
258
 
 
259
Makefile POTFILES: stamp-it
 
260
        @if test ! -f $@; then \
 
261
          rm -f stamp-it; \
 
262
          $(MAKE) stamp-it; \
516
263
        fi
517
264
 
518
 
$(DUMMYPOFILES):
519
 
 
520
 
update-gmo: Makefile $(GMOFILES)
521
 
        @:
522
 
 
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
530
 
 
531
 
force:
 
267
          && CONFIG_FILES=$(subdir)/Makefile.in CONFIG_HEADERS= CONFIG_LINKS= \
 
268
               $(SHELL) ./config.status
532
269
 
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.