~vcs-imports/denemo/trunk

« back to all changes in this revision

Viewing changes to po/Makefile.in.in

  • Committer: R. Mattes
  • Date: 2011-08-04 09:03:42 UTC
  • mto: (3066.3.85)
  • mto: This revision was merged to the branch mainline in revision 3719.
  • Revision ID: git-v1:bdf558884e1feab413c06568c913afcd616481b7
Fixed missing g_thread_init (and lib flags)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# Makefile for PO directory in any package using GNU gettext.
2
 
# Copyright (C) 1995-1997, 2000-2005 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
 
2
# Copyright (C) 1995-1997, 2000-2004 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
3
3
#
4
4
# This file can be copied and used freely without restrictions.  It can
5
5
# be used in projects which are not available under the GNU General Public
8
8
# Please note that the actual code of GNU gettext is covered by the GNU
9
9
# General Public License and is *not* in the public domain.
10
10
#
11
 
# Origin: gettext-0.14.4
 
11
# Origin: gettext-0.14
12
12
 
13
13
PACKAGE = @PACKAGE@
14
14
VERSION = @VERSION@
15
 
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
16
15
 
17
16
SHELL = /bin/sh
18
17
@SET_MAKE@
23
22
 
24
23
prefix = @prefix@
25
24
exec_prefix = @exec_prefix@
26
 
 
27
 
datarootdir = @datarootdir@
28
25
datadir = @datadir@
29
 
localedir = @localedir@
 
26
localedir = $(datadir)/locale
30
27
gettextsrcdir = $(datadir)/gettext/po
31
28
 
32
29
INSTALL = @INSTALL@
49
46
DUMMYPOFILES = @DUMMYPOFILES@
50
47
DISTFILES.common = Makefile.in.in remove-potcdate.sin \
51
48
$(DISTFILES.common.extra1) $(DISTFILES.common.extra2) $(DISTFILES.common.extra3)
52
 
DISTFILES = $(DISTFILES.common) Makevars POTFILES.in \
 
49
DISTFILES = $(DISTFILES.common) Makevars POTFILES.in $(DOMAIN).pot stamp-po \
53
50
$(POFILES) $(GMOFILES) \
54
51
$(DISTFILES.extra1) $(DISTFILES.extra2) $(DISTFILES.extra3)
55
52
 
82
79
all-yes: stamp-po
83
80
all-no:
84
81
 
85
 
# $(srcdir)/$(DOMAIN).pot is only created when needed. When xgettext finds no
86
 
# internationalized messages, no $(srcdir)/$(DOMAIN).pot is created (because
87
 
# we don't want to bother translators with empty POT files). We assume that
88
 
# LINGUAS is empty in this case, i.e. $(POFILES) and $(GMOFILES) are empty.
89
 
# In this case, stamp-po is a nop (i.e. a phony target).
90
 
 
91
82
# stamp-po is a timestamp denoting the last time at which the CATALOGS have
92
83
# been loosely updated. Its purpose is that when a developer or translator
93
84
# checks out the package via CVS, and the $(DOMAIN).pot file is not in CVS,
97
88
# $(POFILES) has been designed to not touch files that don't need to be
98
89
# changed.
99
90
stamp-po: $(srcdir)/$(DOMAIN).pot
100
 
        test ! -f $(srcdir)/$(DOMAIN).pot || \
101
 
          test -z "$(GMOFILES)" || $(MAKE) $(GMOFILES)
102
 
        @test ! -f $(srcdir)/$(DOMAIN).pot || { \
103
 
          echo "touch stamp-po" && \
104
 
          echo timestamp > stamp-poT && \
105
 
          mv stamp-poT stamp-po; \
106
 
        }
 
91
        test -z "$(GMOFILES)" || $(MAKE) $(GMOFILES)
 
92
        @echo "touch stamp-po"
 
93
        @echo timestamp > stamp-poT
 
94
        @mv stamp-poT stamp-po
107
95
 
108
96
# Note: Target 'all' must not depend on target '$(DOMAIN).pot-update',
109
97
# otherwise packages like GCC can not be built if only parts of the source
112
100
# This target rebuilds $(DOMAIN).pot; it is an expensive operation.
113
101
# Note that $(DOMAIN).pot is not touched if it doesn't need to be changed.
114
102
$(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed
115
 
        if test -n '$(MSGID_BUGS_ADDRESS)' || test '$(PACKAGE_BUGREPORT)' = '@'PACKAGE_BUGREPORT'@'; then \
116
 
          msgid_bugs_address='$(MSGID_BUGS_ADDRESS)'; \
117
 
        else \
118
 
          msgid_bugs_address='$(PACKAGE_BUGREPORT)'; \
119
 
        fi; \
120
103
        $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \
121
104
          --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) \
122
105
          --files-from=$(srcdir)/POTFILES.in \
123
106
          --copyright-holder='$(COPYRIGHT_HOLDER)' \
124
 
          --msgid-bugs-address="$$msgid_bugs_address"
 
107
          --msgid-bugs-address='$(MSGID_BUGS_ADDRESS)'
125
108
        test ! -f $(DOMAIN).po || { \
126
109
          if test -f $(srcdir)/$(DOMAIN).pot; then \
127
110
            sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \
306
289
        $(MAKE) update-po
307
290
        @$(MAKE) dist2
308
291
# This is a separate target because 'update-po' must be executed before.
309
 
dist2: stamp-po $(DISTFILES)
 
292
dist2: $(DISTFILES)
310
293
        dists="$(DISTFILES)"; \
311
294
        if test "$(PACKAGE)" = "gettext-tools"; then \
312
295
          dists="$$dists Makevars.template"; \
313
296
        fi; \
314
 
        if test -f $(srcdir)/$(DOMAIN).pot; then \
315
 
          dists="$$dists $(DOMAIN).pot stamp-po"; \
316
 
        fi; \
317
297
        if test -f $(srcdir)/ChangeLog; then \
318
298
          dists="$$dists ChangeLog"; \
319
299
        fi; \
325
305
        if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \
326
306
        for file in $$dists; do \
327
307
          if test -f $$file; then \
328
 
            cp -p $$file $(distdir) || exit 1; \
 
308
            cp -p $$file $(distdir); \
329
309
          else \
330
 
            cp -p $(srcdir)/$$file $(distdir) || exit 1; \
 
310
            cp -p $(srcdir)/$$file $(distdir); \
331
311
          fi; \
332
312
        done
333
313
 
374
354
update-gmo: Makefile $(GMOFILES)
375
355
        @:
376
356
 
377
 
Makefile: Makefile.in.in Makevars $(top_builddir)/config.status @POMAKEFILEDEPS@
 
357
Makefile: Makefile.in.in $(top_builddir)/config.status @POMAKEFILEDEPS@
378
358
        cd $(top_builddir) \
379
359
          && CONFIG_FILES=$(subdir)/$@.in CONFIG_HEADERS= \
380
360
               $(SHELL) ./config.status