~audio-recorder/audio-recorder/trunk

« back to all changes in this revision

Viewing changes to po/Makefile

  • Committer: Osmo Antero
  • Date: 2012-04-18 19:22:01 UTC
  • Revision ID: osmoma@gmail.com-20120418192201-ejjs6ikv7o4aznbi
New media-player interface that's based on the MediaPlayer2 standard. See src/dbus-mpris2.c.

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
 
13
 
 
14
PACKAGE = audio-recorder
 
15
VERSION = 0.8
 
16
PACKAGE_BUGREPORT = https://bugs.launchpad.net/audio-recorder/+filebug
 
17
 
 
18
SHELL = /bin/sh
 
19
 
 
20
 
 
21
srcdir = .
 
22
top_srcdir = ..
 
23
 
 
24
 
 
25
prefix = /usr
 
26
exec_prefix = ${prefix}
 
27
datarootdir = ${prefix}/share
 
28
datadir = ${datarootdir}
 
29
localedir = ${datarootdir}/locale
 
30
gettextsrcdir = $(datadir)/gettext/po
 
31
 
 
32
INSTALL = /usr/bin/install -c
 
33
INSTALL_DATA = ${INSTALL} -m 644
 
34
 
 
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)
 
74
 
 
75
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 =
 
171
 
 
172
.SUFFIXES:
 
173
.SUFFIXES: .po .gmo .mo .sed .sin .nop .po-create .po-update
 
174
 
 
175
.po.mo:
 
176
        @echo "$(MSGFMT) -c -o $@ $<"; \
 
177
        $(MSGFMT) -c -o t-$@ $< && mv t-$@ $@
 
178
 
 
179
.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
 
193
all-no:
 
194
 
 
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.8' \
 
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:
 
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; \
 
309
          done; \
 
310
          for file in Makevars; do \
 
311
            rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
 
312
          done; \
 
313
        else \
 
314
          : ; \
 
315
        fi
 
316
install-data-no: all
 
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 && \
 
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
 
399
 
 
400
# 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
          : ; \
 
412
        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
 
 
428
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
 
433
 
 
434
clean: mostlyclean
 
435
 
 
436
distclean: clean
 
437
        rm -f Makefile Makefile.in POTFILES *.mo
 
438
 
 
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)
 
443
 
 
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)
 
450
        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; \
 
464
        done; \
 
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; \
 
469
          else \
 
470
            cp -p $(srcdir)/$$file $(distdir) || exit 1; \
 
471
          fi; \
 
472
        done
 
473
 
 
474
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; \
 
491
        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 \
 
504
            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
          fi; \
 
513
        else \
 
514
          echo "msgmerge for $$lang.po failed!" 1>&2; \
 
515
          rm -f $$tmpdir/$$lang.new.po; \
 
516
        fi
 
517
 
 
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
 
528
        cd $(top_builddir) \
 
529
          && /bin/bash ./config.status $(subdir)/$@.in po-directories
 
530
 
 
531
force:
 
532
 
 
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.
 
535
.NOEXPORT: