~darkmuggle-deactivatedaccount/ubuntu/quantal/grub2/fix-872244

« back to all changes in this revision

Viewing changes to po/Makefile.in.in

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson, Colin Watson, Evan Broder, Mario Limonciello
  • Date: 2010-11-24 13:59:55 UTC
  • mfrom: (1.17.6 upstream) (17.6.15 experimental)
  • Revision ID: james.westby@ubuntu.com-20101124135955-r6ii5sepayr7jt53
Tags: 1.99~20101124-1ubuntu1
[ Colin Watson ]
* Resynchronise with Debian experimental.  Remaining changes:
  - Adjust for default Ubuntu boot options ("quiet splash").
  - Default to hiding the menu; holding down Shift at boot will show it.
  - Set a monochromatic theme for Ubuntu.
  - Apply Ubuntu GRUB Legacy changes to legacy update-grub script: title,
    recovery mode, quiet option, tweak how memtest86+ is displayed, and
    use UUIDs where appropriate.
  - Fix backslash-escaping in merge_debconf_into_conf.
  - Remove "GNU/Linux" from default distributor string.
  - Add crashkernel= options if kdump and makedumpfile are available.
  - If other operating systems are installed, then automatically unhide
    the menu.  Otherwise, if GRUB_HIDDEN_TIMEOUT is 0, then use keystatus
    if available to check whether Shift is pressed.  If it is, show the
    menu, otherwise boot immediately.  If keystatus is not available, then
    fall back to a short delay interruptible with Escape.
  - Allow Shift to interrupt 'sleep --interruptible'.
  - Don't display introductory message about line editing unless we're
    actually offering a shell prompt.  Don't clear the screen just before
    booting if we never drew the menu in the first place.
  - Remove some verbose messages printed before reading the configuration
    file.
  - Suppress progress messages as the kernel and initrd load for
    non-recovery kernel menu entries.
  - Change prepare_grub_to_access_device to handle filesystems
    loop-mounted on file images.
  - Ignore devices loop-mounted from files in 10_linux.
  - Show the boot menu if the previous boot failed, that is if it failed
    to get to the end of one of the normal runlevels.
  - Don't generate /boot/grub/device.map during grub-install or
    grub-mkconfig by default.
  - Adjust upgrade version checks for Ubuntu.
  - Don't display "GRUB loading" unless Shift is held down.
  - Adjust versions of grub-doc and grub-legacy-doc conflicts to tolerate
    our backport of the grub-doc split.
  - Fix LVM/RAID probing in the absence of /boot/grub/device.map.
  - Look for .mo files in /usr/share/locale-langpack as well, in
    preference.
  - Make sure GRUB_TIMEOUT isn't quoted unnecessarily.
  - Probe all devices in 'grub-probe --target=drive' if
    /boot/grub/device.map is missing.
  - Build-depend on qemu-kvm rather than qemu-system for grub-pc tests.
  - Use qemu rather than qemu-system-i386.
  - Program vesafb on BIOS systems rather than efifb.
  - Add a grub-rescue-efi-amd64 package containing a rescue CD-ROM image
    for EFI-AMD64.
  - On Wubi, don't ask for an install device, but just update wubildr
    using the diverted grub-install.
  - When embedding the core image in a post-MBR gap, check for and avoid
    sectors matching any of a list of known signatures.
  - Disable video_bochs and video_cirrus on PC BIOS systems, as probing
    PCI space seems to break on some systems.
* Downgrade "ACPI shutdown failed" error to a debug message, since it can
  cause spurious test failures.

[ Evan Broder ]
* Enable lua from grub-extras.
* Incorporate the bitop library into lua.
* Add enum_pci function to grub module in lua.
* Switch back to gfxpayload=keep by default, unless the video hardware
  is known to not support it.

[ Mario Limonciello ]
* Built part_msdos and vfat into bootx64.efi (LP: #677758)

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 = @PACKAGE@
 
15
VERSION = @VERSION@
 
16
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
 
17
 
 
18
SHELL = /bin/sh
 
19
@SET_MAKE@
 
20
 
 
21
srcdir = @srcdir@
 
22
top_srcdir = @top_srcdir@
 
23
VPATH = @srcdir@
 
24
 
 
25
prefix = @prefix@
 
26
exec_prefix = @exec_prefix@
 
27
datarootdir = @datarootdir@
 
28
datadir = @datadir@
 
29
localedir = @localedir@
 
30
gettextsrcdir = $(datadir)/gettext/po
 
31
 
 
32
INSTALL = @INSTALL@
 
33
INSTALL_DATA = @INSTALL_DATA@
 
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
# @install_sh@ does not start with $(SHELL), so we add it.
 
39
# In automake >= 1.10, @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) @install_sh@ -d
 
43
install_sh = $(SHELL) @install_sh@
 
44
MKDIR_P = @MKDIR_P@
 
45
mkdir_p = @mkdir_p@
 
46
 
 
47
GMSGFMT_ = @GMSGFMT@
 
48
GMSGFMT_no = @GMSGFMT@
 
49
GMSGFMT_yes = @GMSGFMT_015@
 
50
GMSGFMT = $(GMSGFMT_$(USE_MSGCTXT))
 
51
MSGFMT_ = @MSGFMT@
 
52
MSGFMT_no = @MSGFMT@
 
53
MSGFMT_yes = @MSGFMT_015@
 
54
MSGFMT = $(MSGFMT_$(USE_MSGCTXT))
 
55
XGETTEXT_ = @XGETTEXT@
 
56
XGETTEXT_no = @XGETTEXT@
 
57
XGETTEXT_yes = @XGETTEXT_015@
 
58
XGETTEXT = $(XGETTEXT_$(USE_MSGCTXT))
 
59
MSGMERGE = msgmerge
 
60
MSGMERGE_UPDATE = @MSGMERGE@ --update
 
61
MSGINIT = msginit
 
62
MSGCONV = msgconv
 
63
MSGFILTER = msgfilter
 
64
 
 
65
POFILES = @POFILES@
 
66
GMOFILES = @GMOFILES@
 
67
UPDATEPOFILES = @UPDATEPOFILES@
 
68
DUMMYPOFILES = @DUMMYPOFILES@
 
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
 
 
77
CATALOGS = @CATALOGS@
 
78
 
 
79
# Makevars gets inserted here. (Don't remove this line!)
 
80
 
 
81
.SUFFIXES:
 
82
.SUFFIXES: .po .gmo .mo .sed .sin .nop .po-create .po-update
 
83
 
 
84
.po.mo:
 
85
        @echo "$(MSGFMT) -c -o $@ $<"; \
 
86
        $(MSGFMT) -c -o t-$@ $< && mv t-$@ $@
 
87
 
 
88
.po.gmo:
 
89
        @lang=`echo $* | sed -e 's,.*/,,'`; \
 
90
        test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
 
91
        echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o $${lang}.gmo $${lang}.po"; \
 
92
        cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo
 
93
 
 
94
.sin.sed:
 
95
        sed -e '/^#/d' $< > t-$@
 
96
        mv t-$@ $@
 
97
 
 
98
 
 
99
all: check-macro-version all-@USE_NLS@
 
100
 
 
101
all-yes: stamp-po
 
102
all-no:
 
103
 
 
104
# Ensure that the gettext macros and this Makefile.in.in are in sync.
 
105
check-macro-version:
 
106
        @test "$(GETTEXT_MACRO_VERSION)" = "@GETTEXT_MACRO_VERSION@" \
 
107
          || { echo "*** error: gettext infrastructure mismatch: using a Makefile.in.in from gettext version $(GETTEXT_MACRO_VERSION) but the autoconf macros are from gettext version @GETTEXT_MACRO_VERSION@" 1>&2; \
 
108
               exit 1; \
 
109
             }
 
110
 
 
111
# $(srcdir)/$(DOMAIN).pot is only created when needed. When xgettext finds no
 
112
# internationalized messages, no $(srcdir)/$(DOMAIN).pot is created (because
 
113
# we don't want to bother translators with empty POT files). We assume that
 
114
# LINGUAS is empty in this case, i.e. $(POFILES) and $(GMOFILES) are empty.
 
115
# In this case, stamp-po is a nop (i.e. a phony target).
 
116
 
 
117
# stamp-po is a timestamp denoting the last time at which the CATALOGS have
 
118
# been loosely updated. Its purpose is that when a developer or translator
 
119
# checks out the package via CVS, and the $(DOMAIN).pot file is not in CVS,
 
120
# "make" will update the $(DOMAIN).pot and the $(CATALOGS), but subsequent
 
121
# invocations of "make" will do nothing. This timestamp would not be necessary
 
122
# if updating the $(CATALOGS) would always touch them; however, the rule for
 
123
# $(POFILES) has been designed to not touch files that don't need to be
 
124
# changed.
 
125
stamp-po: $(srcdir)/$(DOMAIN).pot
 
126
        test ! -f $(srcdir)/$(DOMAIN).pot || \
 
127
          test -z "$(GMOFILES)" || $(MAKE) $(GMOFILES)
 
128
        @test ! -f $(srcdir)/$(DOMAIN).pot || { \
 
129
          echo "touch stamp-po" && \
 
130
          echo timestamp > stamp-poT && \
 
131
          mv stamp-poT stamp-po; \
 
132
        }
 
133
 
 
134
# Note: Target 'all' must not depend on target '$(DOMAIN).pot-update',
 
135
# otherwise packages like GCC can not be built if only parts of the source
 
136
# have been downloaded.
 
137
 
 
138
# This target rebuilds $(DOMAIN).pot; it is an expensive operation.
 
139
# Note that $(DOMAIN).pot is not touched if it doesn't need to be changed.
 
140
$(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in $(srcdir)/POTFILES-shell.in remove-potcdate.sed
 
141
        if LC_ALL=C grep 'GNU @PACKAGE@' $(top_srcdir)/* 2>/dev/null | grep -v 'libtool:' >/dev/null; then \
 
142
          package_gnu='GNU '; \
 
143
        else \
 
144
          package_gnu=''; \
 
145
        fi; \
 
146
        if test -n '$(MSGID_BUGS_ADDRESS)' || test '$(PACKAGE_BUGREPORT)' = '@'PACKAGE_BUGREPORT'@'; then \
 
147
          msgid_bugs_address='$(MSGID_BUGS_ADDRESS)'; \
 
148
        else \
 
149
          msgid_bugs_address='$(PACKAGE_BUGREPORT)'; \
 
150
        fi; \
 
151
        case `$(XGETTEXT) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \
 
152
          '' | 0.[0-9] | 0.[0-9].* | 0.1[0-5] | 0.1[0-5].* | 0.16 | 0.16.[0-1]*) \
 
153
            $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \
 
154
              --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) @XGETTEXT_EXTRA_OPTIONS@ \
 
155
              --files-from=$(srcdir)/POTFILES.in \
 
156
              --copyright-holder='$(COPYRIGHT_HOLDER)' \
 
157
              --msgid-bugs-address="$$msgid_bugs_address" \
 
158
            ;; \
 
159
          *) \
 
160
            $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \
 
161
              --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) @XGETTEXT_EXTRA_OPTIONS@ \
 
162
              --files-from=$(srcdir)/POTFILES.in \
 
163
              --copyright-holder='$(COPYRIGHT_HOLDER)' \
 
164
              --package-name="$${package_gnu}@PACKAGE@" \
 
165
              --package-version='@VERSION@' \
 
166
              --msgid-bugs-address="$$msgid_bugs_address" \
 
167
            ;; \
 
168
        esac
 
169
        case `$(XGETTEXT) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \
 
170
          '' | 0.[0-9] | 0.[0-9].* | 0.1[0-5] | 0.1[0-5].* | 0.16 | 0.16.[0-1]*) \
 
171
            $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \
 
172
              --add-comments=TRANSLATORS: @XGETTEXT_EXTRA_OPTIONS@ \
 
173
              --files-from=$(srcdir)/POTFILES-shell.in \
 
174
              --copyright-holder='$(COPYRIGHT_HOLDER)' \
 
175
              --msgid-bugs-address="$$msgid_bugs_address" \
 
176
              --join-existing --language=Shell --keyword=gettext_quoted \
 
177
            ;; \
 
178
          *) \
 
179
            $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \
 
180
              --add-comments=TRANSLATORS: @XGETTEXT_EXTRA_OPTIONS@ \
 
181
              --files-from=$(srcdir)/POTFILES-shell.in \
 
182
              --copyright-holder='$(COPYRIGHT_HOLDER)' \
 
183
              --package-name="$${package_gnu}@PACKAGE@" \
 
184
              --package-version='@VERSION@' \
 
185
              --msgid-bugs-address="$$msgid_bugs_address" \
 
186
              --join-existing --language=Shell --keyword=gettext_quoted \
 
187
            ;; \
 
188
        esac
 
189
        test ! -f $(DOMAIN).po || { \
 
190
          if test -f $(srcdir)/$(DOMAIN).pot; then \
 
191
            sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \
 
192
            sed -f remove-potcdate.sed < $(DOMAIN).po > $(DOMAIN).2po && \
 
193
            if cmp $(DOMAIN).1po $(DOMAIN).2po >/dev/null 2>&1; then \
 
194
              rm -f $(DOMAIN).1po $(DOMAIN).2po $(DOMAIN).po; \
 
195
            else \
 
196
              rm -f $(DOMAIN).1po $(DOMAIN).2po $(srcdir)/$(DOMAIN).pot && \
 
197
              mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \
 
198
            fi; \
 
199
          else \
 
200
            mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \
 
201
          fi; \
 
202
        }
 
203
 
 
204
# This rule has no dependencies: we don't need to update $(DOMAIN).pot at
 
205
# every "make" invocation, only create it when it is missing.
 
206
# Only "make $(DOMAIN).pot-update" or "make dist" will force an update.
 
207
$(srcdir)/$(DOMAIN).pot:
 
208
        $(MAKE) $(DOMAIN).pot-update
 
209
 
 
210
# This target rebuilds a PO file if $(DOMAIN).pot has changed.
 
211
# Note that a PO file is not touched if it doesn't need to be changed.
 
212
$(POFILES): $(srcdir)/$(DOMAIN).pot
 
213
        @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \
 
214
        if test -f "$(srcdir)/$${lang}.po"; then \
 
215
          test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
 
216
          echo "$${cdcmd}$(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot"; \
 
217
          cd $(srcdir) \
 
218
            && { case `$(MSGMERGE_UPDATE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \
 
219
                   '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \
 
220
                     $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) $${lang}.po $(DOMAIN).pot;; \
 
221
                   *) \
 
222
                     $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot;; \
 
223
                 esac; \
 
224
               }; \
 
225
        else \
 
226
          $(MAKE) $${lang}.po-create; \
 
227
        fi
 
228
 
 
229
 
 
230
install: install-exec install-data
 
231
install-exec:
 
232
install-data: install-data-@USE_NLS@
 
233
        if test "$(PACKAGE)" = "gettext-tools"; then \
 
234
          $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \
 
235
          for file in $(DISTFILES.common) Makevars.template; do \
 
236
            $(INSTALL_DATA) $(srcdir)/$$file \
 
237
                            $(DESTDIR)$(gettextsrcdir)/$$file; \
 
238
          done; \
 
239
          for file in Makevars; do \
 
240
            rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
 
241
          done; \
 
242
        else \
 
243
          : ; \
 
244
        fi
 
245
install-data-no: all
 
246
install-data-yes: all
 
247
        @catalogs='$(CATALOGS)'; \
 
248
        for cat in $$catalogs; do \
 
249
          cat=`basename $$cat`; \
 
250
          lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
 
251
          dir=$(localedir)/$$lang/LC_MESSAGES; \
 
252
          $(mkdir_p) $(DESTDIR)$$dir; \
 
253
          if test -r $$cat; then realcat=$$cat; else realcat=$(srcdir)/$$cat; fi; \
 
254
          $(INSTALL_DATA) $$realcat $(DESTDIR)$$dir/$(DOMAIN).mo; \
 
255
          echo "installing $$realcat as $(DESTDIR)$$dir/$(DOMAIN).mo"; \
 
256
          for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \
 
257
            if test -n "$$lc"; then \
 
258
              if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \
 
259
                link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \
 
260
                mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
 
261
                mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
 
262
                (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \
 
263
                 for file in *; do \
 
264
                   if test -f $$file; then \
 
265
                     ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \
 
266
                   fi; \
 
267
                 done); \
 
268
                rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
 
269
              else \
 
270
                if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \
 
271
                  :; \
 
272
                else \
 
273
                  rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \
 
274
                  mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
 
275
                fi; \
 
276
              fi; \
 
277
              rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
 
278
              ln -s ../LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \
 
279
              ln $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \
 
280
              cp -p $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
 
281
              echo "installing $$realcat link as $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo"; \
 
282
            fi; \
 
283
          done; \
 
284
        done
 
285
 
 
286
install-strip: install
 
287
 
 
288
installdirs: installdirs-exec installdirs-data
 
289
installdirs-exec:
 
290
installdirs-data: installdirs-data-@USE_NLS@
 
291
        if test "$(PACKAGE)" = "gettext-tools"; then \
 
292
          $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \
 
293
        else \
 
294
          : ; \
 
295
        fi
 
296
installdirs-data-no:
 
297
installdirs-data-yes:
 
298
        @catalogs='$(CATALOGS)'; \
 
299
        for cat in $$catalogs; do \
 
300
          cat=`basename $$cat`; \
 
301
          lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
 
302
          dir=$(localedir)/$$lang/LC_MESSAGES; \
 
303
          $(mkdir_p) $(DESTDIR)$$dir; \
 
304
          for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \
 
305
            if test -n "$$lc"; then \
 
306
              if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \
 
307
                link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \
 
308
                mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
 
309
                mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
 
310
                (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \
 
311
                 for file in *; do \
 
312
                   if test -f $$file; then \
 
313
                     ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \
 
314
                   fi; \
 
315
                 done); \
 
316
                rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
 
317
              else \
 
318
                if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \
 
319
                  :; \
 
320
                else \
 
321
                  rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \
 
322
                  mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
 
323
                fi; \
 
324
              fi; \
 
325
            fi; \
 
326
          done; \
 
327
        done
 
328
 
 
329
# Define this as empty until I found a useful application.
 
330
installcheck:
 
331
 
 
332
uninstall: uninstall-exec uninstall-data
 
333
uninstall-exec:
 
334
uninstall-data: uninstall-data-@USE_NLS@
 
335
        if test "$(PACKAGE)" = "gettext-tools"; then \
 
336
          for file in $(DISTFILES.common) Makevars.template; do \
 
337
            rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
 
338
          done; \
 
339
        else \
 
340
          : ; \
 
341
        fi
 
342
uninstall-data-no:
 
343
uninstall-data-yes:
 
344
        catalogs='$(CATALOGS)'; \
 
345
        for cat in $$catalogs; do \
 
346
          cat=`basename $$cat`; \
 
347
          lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
 
348
          for lc in LC_MESSAGES $(EXTRA_LOCALE_CATEGORIES); do \
 
349
            rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
 
350
          done; \
 
351
        done
 
352
 
 
353
check: all
 
354
 
 
355
info dvi ps pdf html tags TAGS ctags CTAGS ID:
 
356
 
 
357
mostlyclean:
 
358
        rm -f remove-potcdate.sed
 
359
        rm -f stamp-poT
 
360
        rm -f core core.* $(DOMAIN).po $(DOMAIN).1po $(DOMAIN).2po *.new.po
 
361
        rm -fr *.o
 
362
 
 
363
clean: mostlyclean
 
364
 
 
365
distclean: clean
 
366
        rm -f Makefile Makefile.in POTFILES *.mo
 
367
 
 
368
maintainer-clean: distclean
 
369
        @echo "This command is intended for maintainers to use;"
 
370
        @echo "it deletes files that may require special tools to rebuild."
 
371
        rm -f stamp-po $(GMOFILES)
 
372
 
 
373
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
 
374
dist distdir:
 
375
        $(MAKE) update-po
 
376
        @$(MAKE) dist2
 
377
# This is a separate target because 'update-po' must be executed before.
 
378
dist2: stamp-po $(DISTFILES)
 
379
        dists="$(DISTFILES)"; \
 
380
        if test "$(PACKAGE)" = "gettext-tools"; then \
 
381
          dists="$$dists Makevars.template"; \
 
382
        fi; \
 
383
        if test -f $(srcdir)/$(DOMAIN).pot; then \
 
384
          dists="$$dists $(DOMAIN).pot stamp-po"; \
 
385
        fi; \
 
386
        if test -f $(srcdir)/ChangeLog; then \
 
387
          dists="$$dists ChangeLog"; \
 
388
        fi; \
 
389
        for i in 0 1 2 3 4 5 6 7 8 9; do \
 
390
          if test -f $(srcdir)/ChangeLog.$$i; then \
 
391
            dists="$$dists ChangeLog.$$i"; \
 
392
          fi; \
 
393
        done; \
 
394
        if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \
 
395
        for file in $$dists; do \
 
396
          if test -f $$file; then \
 
397
            cp -p $$file $(distdir) || exit 1; \
 
398
          else \
 
399
            cp -p $(srcdir)/$$file $(distdir) || exit 1; \
 
400
          fi; \
 
401
        done
 
402
 
 
403
update-po: Makefile
 
404
        $(MAKE) $(DOMAIN).pot-update
 
405
        test -z "$(UPDATEPOFILES)" || $(MAKE) $(UPDATEPOFILES)
 
406
        $(MAKE) update-gmo
 
407
 
 
408
# General rule for creating PO files.
 
409
 
 
410
.nop.po-create:
 
411
        @lang=`echo $@ | sed -e 's/\.po-create$$//'`; \
 
412
        echo "File $$lang.po does not exist. If you are a translator, you can create it through 'msginit'." 1>&2; \
 
413
        exit 1
 
414
 
 
415
# General rule for updating PO files.
 
416
 
 
417
.nop.po-update:
 
418
        @lang=`echo $@ | sed -e 's/\.po-update$$//'`; \
 
419
        if test "$(PACKAGE)" = "gettext-tools"; then PATH=`pwd`/../src:$$PATH; fi; \
 
420
        tmpdir=`pwd`; \
 
421
        echo "$$lang:"; \
 
422
        test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
 
423
        echo "$${cdcmd}$(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \
 
424
        cd $(srcdir); \
 
425
        if { case `$(MSGMERGE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \
 
426
               '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \
 
427
                 $(MSGMERGE) $(MSGMERGE_OPTIONS) -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \
 
428
               *) \
 
429
                 $(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \
 
430
             esac; \
 
431
           }; then \
 
432
          if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
 
433
            rm -f $$tmpdir/$$lang.new.po; \
 
434
          else \
 
435
            if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
 
436
              :; \
 
437
            else \
 
438
              echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
 
439
              exit 1; \
 
440
            fi; \
 
441
          fi; \
 
442
        else \
 
443
          echo "msgmerge for $$lang.po failed!" 1>&2; \
 
444
          rm -f $$tmpdir/$$lang.new.po; \
 
445
        fi
 
446
 
 
447
$(DUMMYPOFILES):
 
448
 
 
449
update-gmo: Makefile $(GMOFILES)
 
450
        @:
 
451
 
 
452
# Recreate Makefile by invoking config.status. Explicitly invoke the shell,
 
453
# because execution permission bits may not work on the current file system.
 
454
# Use @SHELL@, which is the shell determined by autoconf for the use by its
 
455
# scripts, not $(SHELL) which is hardwired to /bin/sh and may be deficient.
 
456
Makefile: Makefile.in.in Makevars $(top_builddir)/config.status @POMAKEFILEDEPS@
 
457
        cd $(top_builddir) \
 
458
          && @SHELL@ ./config.status $(subdir)/$@.in po-directories
 
459
 
 
460
force:
 
461
 
 
462
# Tell versions [3.59,3.63) of GNU make not to export all variables.
 
463
# Otherwise a system limit (for SysV at least) may be exceeded.
 
464
.NOEXPORT: