1
Index: stellarium-0.9.0/po/Makefile.in.in
2
===================================================================
3
--- stellarium-0.9.0.orig/po/Makefile.in.in 2007-06-25 21:30:43.772725500 +0200
4
+++ stellarium-0.9.0/po/Makefile.in.in 2007-06-25 21:30:51.977238250 +0200
6
# Makefile for PO directory in any package using GNU gettext.
7
-# Copyright (C) 1995-1997, 2000-2004 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
8
+# Copyright (C) 1995-1997, 2000-2006 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
10
# This file can be copied and used freely without restrictions. It can
11
# be used in projects which are not available under the GNU General Public
13
# Please note that the actual code of GNU gettext is covered by the GNU
14
# General Public License and is *not* in the public domain.
16
-# Origin: gettext-0.14
17
+# Origin: gettext-0.16
21
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
28
exec_prefix = @exec_prefix@
29
+datarootdir = @datarootdir@
31
-localedir = $(datadir)/locale
32
+localedir = @localedir@
33
gettextsrcdir = $(datadir)/gettext/po
36
INSTALL_DATA = @INSTALL_DATA@
37
-MKINSTALLDIRS = @MKINSTALLDIRS@
38
-mkinstalldirs = $(SHELL) $(MKINSTALLDIRS)
42
-XGETTEXT = @XGETTEXT@
44
+# In automake <= 1.9.x, $(mkdir_p) is defined either as "mkdir -p --" or as
45
+# "$(mkinstalldirs)" or as "$(install_sh) -d". For these automake versions,
46
+# @install_sh@ does not start with $(SHELL), so we add it.
47
+# In automake >= 1.10, @mkdir_p@ is derived from ${MKDIR_P}, which is defined
48
+# either as "/path/to/mkdir -p" or ".../install-sh -c -d". For these automake
49
+# versions, $(mkinstalldirs) and $(install_sh) are unused.
50
+mkinstalldirs = $(SHELL) @install_sh@ -d
51
+install_sh = $(SHELL) @install_sh@
56
+GMSGFMT_no = @GMSGFMT@
57
+GMSGFMT_yes = @GMSGFMT_015@
58
+GMSGFMT = $(GMSGFMT_$(USE_MSGCTXT))
61
+MSGFMT_yes = @MSGFMT_015@
62
+MSGFMT = $(MSGFMT_$(USE_MSGCTXT))
63
+XGETTEXT_ = @XGETTEXT@
64
+XGETTEXT_no = @XGETTEXT@
65
+XGETTEXT_yes = @XGETTEXT_015@
66
+XGETTEXT = $(XGETTEXT_$(USE_MSGCTXT))
68
MSGMERGE_UPDATE = @MSGMERGE@ --update
71
DUMMYPOFILES = @DUMMYPOFILES@
72
DISTFILES.common = Makefile.in.in remove-potcdate.sin \
73
$(DISTFILES.common.extra1) $(DISTFILES.common.extra2) $(DISTFILES.common.extra3)
74
-DISTFILES = $(DISTFILES.common) Makevars POTFILES.in $(DOMAIN).pot stamp-po \
75
+DISTFILES = $(DISTFILES.common) Makevars POTFILES.in \
76
$(POFILES) $(GMOFILES) \
77
$(DISTFILES.extra1) $(DISTFILES.extra2) $(DISTFILES.extra3)
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).
89
# stamp-po is a timestamp denoting the last time at which the CATALOGS have
90
# been loosely updated. Its purpose is that when a developer or translator
91
# checks out the package via CVS, and the $(DOMAIN).pot file is not in CVS,
93
# $(POFILES) has been designed to not touch files that don't need to be
95
stamp-po: $(srcdir)/$(DOMAIN).pot
96
- test -z "$(GMOFILES)" || $(MAKE) $(GMOFILES)
97
- @echo "touch stamp-po"
98
- @echo timestamp > stamp-poT
99
- @mv stamp-poT stamp-po
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; \
108
# Note: Target 'all' must not depend on target '$(DOMAIN).pot-update',
109
# otherwise packages like GCC can not be built if only parts of the source
110
@@ -100,11 +130,16 @@
111
# This target rebuilds $(DOMAIN).pot; it is an expensive operation.
112
# Note that $(DOMAIN).pot is not touched if it doesn't need to be changed.
113
$(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed
114
+ if test -n '$(MSGID_BUGS_ADDRESS)' || test '$(PACKAGE_BUGREPORT)' = '@'PACKAGE_BUGREPORT'@'; then \
115
+ msgid_bugs_address='$(MSGID_BUGS_ADDRESS)'; \
117
+ msgid_bugs_address='$(PACKAGE_BUGREPORT)'; \
119
$(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \
120
--add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) \
121
--files-from=$(srcdir)/POTFILES.in \
122
--copyright-holder='$(COPYRIGHT_HOLDER)' \
123
- --msgid-bugs-address='$(MSGID_BUGS_ADDRESS)'
124
+ --msgid-bugs-address="$$msgid_bugs_address"
125
test ! -f $(DOMAIN).po || { \
126
if test -f $(srcdir)/$(DOMAIN).pot; then \
127
sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \
130
install-data: install-data-@USE_NLS@
131
if test "$(PACKAGE)" = "gettext-tools"; then \
132
- $(mkinstalldirs) $(DESTDIR)$(gettextsrcdir); \
133
+ $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \
134
for file in $(DISTFILES.common) Makevars.template; do \
135
$(INSTALL_DATA) $(srcdir)/$$file \
136
$(DESTDIR)$(gettextsrcdir)/$$file; \
137
@@ -156,13 +191,13 @@
140
install-data-yes: all
141
- $(mkinstalldirs) $(DESTDIR)$(datadir)
142
+ $(mkdir_p) $(DESTDIR)$(datadir)
143
@catalogs='$(CATALOGS)'; \
144
for cat in $$catalogs; do \
145
cat=`basename $$cat`; \
146
lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
147
dir=$(localedir)/$$lang/LC_MESSAGES; \
148
- $(mkinstalldirs) $(DESTDIR)$$dir; \
149
+ $(mkdir_p) $(DESTDIR)$$dir; \
150
if test -r $$cat; then realcat=$$cat; else realcat=$(srcdir)/$$cat; fi; \
151
$(INSTALL_DATA) $$realcat $(DESTDIR)$$dir/$(DOMAIN).mo; \
152
echo "installing $$realcat as $(DESTDIR)$$dir/$(DOMAIN).mo"; \
153
@@ -202,19 +237,19 @@
155
installdirs-data: installdirs-data-@USE_NLS@
156
if test "$(PACKAGE)" = "gettext-tools"; then \
157
- $(mkinstalldirs) $(DESTDIR)$(gettextsrcdir); \
158
+ $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \
163
installdirs-data-yes:
164
- $(mkinstalldirs) $(DESTDIR)$(datadir)
165
+ $(mkdir_p) $(DESTDIR)$(datadir)
166
@catalogs='$(CATALOGS)'; \
167
for cat in $$catalogs; do \
168
cat=`basename $$cat`; \
169
lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
170
dir=$(localedir)/$$lang/LC_MESSAGES; \
171
- $(mkinstalldirs) $(DESTDIR)$$dir; \
172
+ $(mkdir_p) $(DESTDIR)$$dir; \
173
for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \
174
if test -n "$$lc"; then \
175
if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \
176
@@ -289,11 +324,14 @@
179
# This is a separate target because 'update-po' must be executed before.
181
+dist2: stamp-po $(DISTFILES)
182
dists="$(DISTFILES)"; \
183
if test "$(PACKAGE)" = "gettext-tools"; then \
184
dists="$$dists Makevars.template"; \
186
+ if test -f $(srcdir)/$(DOMAIN).pot; then \
187
+ dists="$$dists $(DOMAIN).pot stamp-po"; \
189
if test -f $(srcdir)/ChangeLog; then \
190
dists="$$dists ChangeLog"; \
193
if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \
194
for file in $$dists; do \
195
if test -f $$file; then \
196
- cp -p $$file $(distdir); \
197
+ cp -p $$file $(distdir) || exit 1; \
199
- cp -p $(srcdir)/$$file $(distdir); \
200
+ cp -p $(srcdir)/$$file $(distdir) || exit 1; \
205
update-gmo: Makefile $(GMOFILES)
208
-Makefile: Makefile.in.in $(top_builddir)/config.status @POMAKEFILEDEPS@
209
+Makefile: Makefile.in.in Makevars $(top_builddir)/config.status @POMAKEFILEDEPS@
211
- && CONFIG_FILES=$(subdir)/$@.in CONFIG_HEADERS= \
212
- $(SHELL) ./config.status
213
+ && $(SHELL) ./config.status $(subdir)/$@.in po-directories