~ubuntu-branches/debian/sid/gworldclock/sid

« back to all changes in this revision

Viewing changes to po/Makefile.in.in

  • Committer: Bazaar Package Importer
  • Author(s): Drew Parsons
  • Date: 2006-11-24 01:27:31 UTC
  • mfrom: (2.1.7 feisty)
  • Revision ID: james.westby@ubuntu.com-20061124012731-95bipxfgk4nx099j
Tags: 1.4.4-6
Use gworldclock.png as icon in the Debian menu. Funny, the menu
docs say they only accept xpm, but png seems to work fine. I can't
find any window manager which uses icons in the menu that won't
display it. If you know something I don't know then tell me,
otherwise I'll just keep the one icon file for simplicity.
Closes: #397429.

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-2003 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
 
2
# Copyright (C) 1995-1997, 2000-2005 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
7
7
# functionality.
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
#
 
11
# Origin: gettext-0.14.4
10
12
 
11
13
PACKAGE = @PACKAGE@
12
14
VERSION = @VERSION@
 
15
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
13
16
 
14
17
SHELL = /bin/sh
15
18
@SET_MAKE@
44
47
DUMMYPOFILES = @DUMMYPOFILES@
45
48
DISTFILES.common = Makefile.in.in remove-potcdate.sin \
46
49
$(DISTFILES.common.extra1) $(DISTFILES.common.extra2) $(DISTFILES.common.extra3)
47
 
DISTFILES = $(DISTFILES.common) Makevars POTFILES.in $(DOMAIN).pot stamp-po \
 
50
DISTFILES = $(DISTFILES.common) Makevars POTFILES.in \
48
51
$(POFILES) $(GMOFILES) \
49
52
$(DISTFILES.extra1) $(DISTFILES.extra2) $(DISTFILES.extra3)
50
53
 
55
58
# Makevars gets inserted here. (Don't remove this line!)
56
59
 
57
60
.SUFFIXES:
58
 
.SUFFIXES: .po .gmo .mo .sed .sin .nop .po-update
 
61
.SUFFIXES: .po .gmo .mo .sed .sin .nop .po-create .po-update
59
62
 
60
63
.po.mo:
61
64
        @echo "$(MSGFMT) -c -o $@ $<"; \
77
80
all-yes: stamp-po
78
81
all-no:
79
82
 
 
83
# $(srcdir)/$(DOMAIN).pot is only created when needed. When xgettext finds no
 
84
# internationalized messages, no $(srcdir)/$(DOMAIN).pot is created (because
 
85
# we don't want to bother translators with empty POT files). We assume that
 
86
# LINGUAS is empty in this case, i.e. $(POFILES) and $(GMOFILES) are empty.
 
87
# In this case, stamp-po is a nop (i.e. a phony target).
 
88
 
80
89
# stamp-po is a timestamp denoting the last time at which the CATALOGS have
81
90
# been loosely updated. Its purpose is that when a developer or translator
82
91
# checks out the package via CVS, and the $(DOMAIN).pot file is not in CVS,
86
95
# $(POFILES) has been designed to not touch files that don't need to be
87
96
# changed.
88
97
stamp-po: $(srcdir)/$(DOMAIN).pot
89
 
        test -z "$(CATALOGS)" || $(MAKE) $(CATALOGS)
90
 
        @echo "touch stamp-po"
91
 
        @echo timestamp > stamp-poT
92
 
        @mv stamp-poT stamp-po
 
98
        test ! -f $(srcdir)/$(DOMAIN).pot || \
 
99
          test -z "$(GMOFILES)" || $(MAKE) $(GMOFILES)
 
100
        @test ! -f $(srcdir)/$(DOMAIN).pot || { \
 
101
          echo "touch stamp-po" && \
 
102
          echo timestamp > stamp-poT && \
 
103
          mv stamp-poT stamp-po; \
 
104
        }
93
105
 
94
106
# Note: Target 'all' must not depend on target '$(DOMAIN).pot-update',
95
107
# otherwise packages like GCC can not be built if only parts of the source
98
110
# This target rebuilds $(DOMAIN).pot; it is an expensive operation.
99
111
# Note that $(DOMAIN).pot is not touched if it doesn't need to be changed.
100
112
$(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed
 
113
        if test -n '$(MSGID_BUGS_ADDRESS)' || test '$(PACKAGE_BUGREPORT)' = '@'PACKAGE_BUGREPORT'@'; then \
 
114
          msgid_bugs_address='$(MSGID_BUGS_ADDRESS)'; \
 
115
        else \
 
116
          msgid_bugs_address='$(PACKAGE_BUGREPORT)'; \
 
117
        fi; \
101
118
        $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \
102
119
          --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) \
103
120
          --files-from=$(srcdir)/POTFILES.in \
104
121
          --copyright-holder='$(COPYRIGHT_HOLDER)' \
105
 
          --msgid-bugs-address='$(MSGID_BUGS_ADDRESS)'
 
122
          --msgid-bugs-address="$$msgid_bugs_address"
106
123
        test ! -f $(DOMAIN).po || { \
107
124
          if test -f $(srcdir)/$(DOMAIN).pot; then \
108
125
            sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \
128
145
# Note that a PO file is not touched if it doesn't need to be changed.
129
146
$(POFILES): $(srcdir)/$(DOMAIN).pot
130
147
        @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \
131
 
        test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
132
 
        echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \
133
 
        cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot
 
148
        if test -f "$(srcdir)/$${lang}.po"; then \
 
149
          test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
 
150
          echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \
 
151
          cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot; \
 
152
        else \
 
153
          $(MAKE) $${lang}.po-create; \
 
154
        fi
134
155
 
135
156
 
136
157
install: install-exec install-data
283
304
        $(MAKE) update-po
284
305
        @$(MAKE) dist2
285
306
# This is a separate target because 'update-po' must be executed before.
286
 
dist2: $(DISTFILES)
 
307
dist2: stamp-po $(DISTFILES)
287
308
        dists="$(DISTFILES)"; \
288
309
        if test "$(PACKAGE)" = "gettext-tools"; then \
289
310
          dists="$$dists Makevars.template"; \
290
311
        fi; \
 
312
        if test -f $(srcdir)/$(DOMAIN).pot; then \
 
313
          dists="$$dists $(DOMAIN).pot stamp-po"; \
 
314
        fi; \
291
315
        if test -f $(srcdir)/ChangeLog; then \
292
316
          dists="$$dists ChangeLog"; \
293
317
        fi; \
299
323
        if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \
300
324
        for file in $$dists; do \
301
325
          if test -f $$file; then \
302
 
            cp -p $$file $(distdir); \
 
326
            cp -p $$file $(distdir) || exit 1; \
303
327
          else \
304
 
            cp -p $(srcdir)/$$file $(distdir); \
 
328
            cp -p $(srcdir)/$$file $(distdir) || exit 1; \
305
329
          fi; \
306
330
        done
307
331
 
310
334
        test -z "$(UPDATEPOFILES)" || $(MAKE) $(UPDATEPOFILES)
311
335
        $(MAKE) update-gmo
312
336
 
 
337
# General rule for creating PO files.
 
338
 
 
339
.nop.po-create:
 
340
        @lang=`echo $@ | sed -e 's/\.po-create$$//'`; \
 
341
        echo "File $$lang.po does not exist. If you are a translator, you can create it through 'msginit'." 1>&2; \
 
342
        exit 1
 
343
 
313
344
# General rule for updating PO files.
314
345
 
315
346
.nop.po-update:
341
372
update-gmo: Makefile $(GMOFILES)
342
373
        @:
343
374
 
344
 
Makefile: Makefile.in.in $(top_builddir)/config.status @POMAKEFILEDEPS@
 
375
Makefile: Makefile.in.in Makevars $(top_builddir)/config.status @POMAKEFILEDEPS@
345
376
        cd $(top_builddir) \
346
377
          && CONFIG_FILES=$(subdir)/$@.in CONFIG_HEADERS= \
347
378
               $(SHELL) ./config.status