~ubuntu-branches/debian/squeeze/freeciv/squeeze

« back to all changes in this revision

Viewing changes to intl/Makefile.in

  • Committer: Bazaar Package Importer
  • Author(s): Clint Adams, Karl Goetz, Clint Adams
  • Date: 2010-02-23 22:09:02 UTC
  • mfrom: (1.2.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20100223220902-kiyrmr9i4152cka5
Tags: 2.2.0-1
[ Karl Goetz ]
* Remove civserver files in /etc/ggzd/ (Closes: 523772, 517787)
* Adding ${misc:Depends} to all binary packages (lintian warnings)

[ Clint Adams ]
* New upstream version.
  - Drop data_dsc_use_bindir.diff (binary pathnames have changed).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Makefile for directory with message catalog handling in GNU NLS Utilities.
2
 
# Copyright (C) 1995-1998, 2000, 2001 Free Software Foundation, Inc.
3
 
#
4
 
# This program is free software; you can redistribute it and/or modify
5
 
# it under the terms of the GNU General Public License as published by
6
 
# the Free Software Foundation; either version 2, or (at your option)
7
 
# any later version.
8
 
#
9
 
# This program is distributed in the hope that it will be useful,
10
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
 
# GNU General Public License for more details.
13
 
#
14
 
# You should have received a copy of the GNU General Public License
15
 
# along with this program; if not, write to the Free Software
16
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17
 
 
18
 
PACKAGE = @PACKAGE@
19
 
VERSION = @VERSION@
20
 
 
21
 
SHELL = /bin/sh
22
 
 
23
 
srcdir = @srcdir@
24
 
top_srcdir = @top_srcdir@
25
 
top_builddir = ..
26
 
VPATH = @srcdir@
27
 
 
28
 
prefix = @prefix@
29
 
exec_prefix = @exec_prefix@
30
 
transform = @program_transform_name@
31
 
libdir = @libdir@
32
 
includedir = @includedir@
33
 
datadir = @datadir@
34
 
localedir = $(datadir)/locale
35
 
gettextsrcdir = $(datadir)/gettext/intl
36
 
aliaspath = $(localedir)
37
 
subdir = intl
38
 
 
39
 
INSTALL = @INSTALL@
40
 
INSTALL_DATA = @INSTALL_DATA@
41
 
MKINSTALLDIRS = @MKINSTALLDIRS@
42
 
mkinstalldirs = $(SHELL) `case "$(MKINSTALLDIRS)" in /*) echo "$(MKINSTALLDIRS)" ;; *) echo "$(top_builddir)/$(MKINSTALLDIRS)" ;; esac`
43
 
 
44
 
l = @INTL_LIBTOOL_SUFFIX_PREFIX@
45
 
 
46
 
AR = ar
47
 
CC = @CC@
48
 
LIBTOOL = @LIBTOOL@
49
 
RANLIB = @RANLIB@
50
 
YACC = @INTLBISON@ -y -d
51
 
YFLAGS = --name-prefix=__gettext
52
 
 
53
 
DEFS = -DLOCALEDIR=\"$(localedir)\" -DLOCALE_ALIAS_PATH=\"$(aliaspath)\" \
54
 
-DLIBDIR=\"$(libdir)\" @DEFS@
55
 
CPPFLAGS = @CPPFLAGS@
56
 
CFLAGS = @CFLAGS@
57
 
LDFLAGS = @LDFLAGS@
58
 
 
59
 
COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS)
60
 
 
61
 
HEADERS = $(COMHDRS) libgnuintl.h libgettext.h loadinfo.h
62
 
COMHDRS = gettext.h gettextP.h hash-string.h
63
 
SOURCES = $(COMSRCS) intl-compat.c
64
 
COMSRCS = bindtextdom.c dcgettext.c dgettext.c gettext.c \
65
 
finddomain.c loadmsgcat.c localealias.c textdomain.c l10nflist.c \
66
 
explodename.c dcigettext.c dcngettext.c dngettext.c ngettext.c plural.y \
67
 
localcharset.c
68
 
OBJECTS = @INTLOBJS@ bindtextdom.$lo dcgettext.$lo dgettext.$lo gettext.$lo \
69
 
finddomain.$lo loadmsgcat.$lo localealias.$lo textdomain.$lo l10nflist.$lo \
70
 
explodename.$lo dcigettext.$lo dcngettext.$lo dngettext.$lo ngettext.$lo \
71
 
plural.$lo localcharset.$lo
72
 
GETTOBJS = intl-compat.$lo
73
 
DISTFILES.common = Makefile.in \
74
 
config.charset locale.alias ref-add.sin ref-del.sin $(HEADERS) $(SOURCES)
75
 
DISTFILES.generated = plural.c
76
 
DISTFILES.normal = VERSION
77
 
DISTFILES.gettext = libintl.glibc
78
 
DISTFILES.obsolete = xopen-msg.sed linux-msg.sed po2tbl.sed.in cat-compat.c
79
 
 
80
 
# Libtool's library version information for libintl.
81
 
# Before making a gettext release, the gettext maintainer must change this
82
 
# according to the libtool documentation, section "Library interface versions".
83
 
# Maintainers of other packages that include the intl directory must *not*
84
 
# change these values.
85
 
LTV_CURRENT=1
86
 
LTV_REVISION=1
87
 
LTV_AGE=0
88
 
 
89
 
.SUFFIXES:
90
 
.SUFFIXES: .c .y .o .lo .sin .sed
91
 
.c.o:
92
 
        $(COMPILE) $<
93
 
.c.lo:
94
 
        $(LIBTOOL) --mode=compile $(COMPILE) $<
95
 
 
96
 
.y.c:
97
 
        $(YACC) $(YFLAGS) --output $@ $<
98
 
        rm -f $*.h
99
 
 
100
 
.sin.sed:
101
 
        sed -e '/^#/d' -e 's/@''PACKAGE''@/@PACKAGE@/g' $< > t-$@
102
 
        mv t-$@ $@
103
 
 
104
 
INCLUDES = -I.. -I. -I$(top_srcdir)/intl
105
 
 
106
 
all: all-@USE_INCLUDED_LIBINTL@
107
 
all-yes: libintl.$la libintl.h charset.alias ref-add.sed ref-del.sed
108
 
all-no: all-no-@BUILD_INCLUDED_LIBINTL@
109
 
all-no-yes: libgnuintl.$la
110
 
all-no-no:
111
 
 
112
 
libintl.a libgnuintl.a: $(OBJECTS)
113
 
        rm -f $@
114
 
        $(AR) cru $@ $(OBJECTS)
115
 
        $(RANLIB) $@
116
 
 
117
 
libintl.la libgnuintl.la: $(OBJECTS)
118
 
        $(LIBTOOL) --mode=link \
119
 
          $(CC) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS) $(LDFLAGS) -o $@ \
120
 
          $(OBJECTS) @LIBICONV@ \
121
 
          -version-info $(LTV_CURRENT):$(LTV_REVISION):$(LTV_AGE) \
122
 
          -rpath $(libdir) \
123
 
          -no-undefined
124
 
 
125
 
libintl.h: libgnuintl.h
126
 
        cp $(srcdir)/libgnuintl.h libintl.h
127
 
 
128
 
charset.alias: config.charset
129
 
        $(SHELL) $(srcdir)/config.charset '@host@' > t-$@
130
 
        mv t-$@ $@
131
 
 
132
 
check: all
133
 
 
134
 
# This installation goal is only used in GNU gettext.  Packages which
135
 
# only use the library should use install instead.
136
 
 
137
 
# We must not install the libintl.h/libintl.a files if we are on a
138
 
# system which has the GNU gettext() function in its C library or in a
139
 
# separate library.
140
 
# If you want to use the one which comes with this version of the
141
 
# package, you have to use `configure --with-included-gettext'.
142
 
install: install-exec install-data
143
 
install-exec: all
144
 
        if test "$(PACKAGE)" = "gettext" \
145
 
           && test '@INTLOBJS@' = '$(GETTOBJS)'; then \
146
 
          $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir); \
147
 
          $(INSTALL_DATA) libintl.h $(DESTDIR)$(includedir)/libintl.h; \
148
 
          $(LIBTOOL) --mode=install \
149
 
            $(INSTALL_DATA) libintl.$la $(DESTDIR)$(libdir)/libintl.$la; \
150
 
        else \
151
 
          : ; \
152
 
        fi
153
 
        if test '@USE_INCLUDED_LIBINTL@' = yes; then \
154
 
          $(mkinstalldirs) $(DESTDIR)$(libdir); \
155
 
          temp=$(DESTDIR)$(libdir)/t-charset.alias; \
156
 
          dest=$(DESTDIR)$(libdir)/charset.alias; \
157
 
          if test -f $(DESTDIR)$(libdir)/charset.alias; then \
158
 
            orig=$(DESTDIR)$(libdir)/charset.alias; \
159
 
            sed -f ref-add.sed $$orig > $$temp; \
160
 
            $(INSTALL_DATA) $$temp $$dest; \
161
 
            rm -f $$temp; \
162
 
          else \
163
 
            if test @GLIBC21@ = no; then \
164
 
              orig=charset.alias; \
165
 
              sed -f ref-add.sed $$orig > $$temp; \
166
 
              $(INSTALL_DATA) $$temp $$dest; \
167
 
              rm -f $$temp; \
168
 
            fi; \
169
 
          fi; \
170
 
          $(mkinstalldirs) $(DESTDIR)$(localedir); \
171
 
          test -f $(DESTDIR)$(localedir)/locale.alias \
172
 
            && orig=$(DESTDIR)$(localedir)/locale.alias \
173
 
            || orig=$(srcdir)/locale.alias; \
174
 
          temp=$(DESTDIR)$(localedir)/t-locale.alias; \
175
 
          dest=$(DESTDIR)$(localedir)/locale.alias; \
176
 
          sed -f ref-add.sed $$orig > $$temp; \
177
 
          $(INSTALL_DATA) $$temp $$dest; \
178
 
          rm -f $$temp; \
179
 
        else \
180
 
          : ; \
181
 
        fi
182
 
install-data: all
183
 
        if test "$(PACKAGE)" = "gettext"; then \
184
 
          $(mkinstalldirs) $(DESTDIR)$(gettextsrcdir); \
185
 
          $(INSTALL_DATA) VERSION $(DESTDIR)$(gettextsrcdir)/VERSION; \
186
 
          $(INSTALL_DATA) ChangeLog.inst $(DESTDIR)$(gettextsrcdir)/ChangeLog; \
187
 
          dists="$(DISTFILES.common)"; \
188
 
          for file in $$dists; do \
189
 
            $(INSTALL_DATA) $(srcdir)/$$file \
190
 
                            $(DESTDIR)$(gettextsrcdir)/$$file; \
191
 
          done; \
192
 
          chmod a+x $(DESTDIR)$(gettextsrcdir)/config.charset; \
193
 
          dists="$(DISTFILES.generated)"; \
194
 
          for file in $$dists; do \
195
 
            if test -f $$file; then dir=.; else dir=$(srcdir); fi; \
196
 
            $(INSTALL_DATA) $$dir/$$file \
197
 
                            $(DESTDIR)$(gettextsrcdir)/$$file; \
198
 
          done; \
199
 
          dists="$(DISTFILES.obsolete)"; \
200
 
          for file in $$dists; do \
201
 
            rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
202
 
          done; \
203
 
        else \
204
 
          : ; \
205
 
        fi
206
 
 
207
 
# Define this as empty until I found a useful application.
208
 
installcheck:
209
 
 
210
 
uninstall:
211
 
        if test "$(PACKAGE)" = "gettext" \
212
 
           && test '@INTLOBJS@' = '$(GETTOBJS)'; then \
213
 
          rm -f $(DESTDIR)$(includedir)/libintl.h; \
214
 
          $(LIBTOOL) --mode=uninstall \
215
 
            rm -f $(DESTDIR)$(libdir)/libintl.$la; \
216
 
        else \
217
 
          : ; \
218
 
        fi
219
 
        if test '@USE_INCLUDED_LIBINTL@' = yes; then \
220
 
          if test -f $(DESTDIR)$(libdir)/charset.alias; then \
221
 
            temp=$(DESTDIR)$(libdir)/t-charset.alias; \
222
 
            dest=$(DESTDIR)$(libdir)/charset.alias; \
223
 
            sed -f ref-del.sed $$dest > $$temp; \
224
 
            if grep '^# Packages using this file: $$' $$temp > /dev/null; then \
225
 
              rm -f $$dest; \
226
 
            else \
227
 
              $(INSTALL_DATA) $$temp $$dest; \
228
 
            fi; \
229
 
            rm -f $$temp; \
230
 
          fi; \
231
 
          if test -f $(DESTDIR)$(localedir)/locale.alias; then \
232
 
            temp=$(DESTDIR)$(localedir)/t-locale.alias; \
233
 
            dest=$(DESTDIR)$(localedir)/locale.alias; \
234
 
            sed -f ref-del.sed $$dest > $$temp; \
235
 
            if grep '^# Packages using this file: $$' $$temp > /dev/null; then \
236
 
              rm -f $$dest; \
237
 
            else \
238
 
              $(INSTALL_DATA) $$temp $$dest; \
239
 
            fi; \
240
 
            rm -f $$temp; \
241
 
          fi; \
242
 
        else \
243
 
          : ; \
244
 
        fi
245
 
        if test "$(PACKAGE)" = "gettext"; then \
246
 
          for file in VERSION ChangeLog $(DISTFILES.common) $(DISTFILES.generated); do \
247
 
            rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
248
 
          done; \
249
 
        else \
250
 
          : ; \
251
 
        fi
252
 
 
253
 
info dvi:
254
 
 
255
 
$(OBJECTS): ../config.h libgnuintl.h
256
 
bindtextdom.$lo finddomain.$lo loadmsgcat.$lo: gettextP.h gettext.h loadinfo.h
257
 
dcgettext.$lo: gettextP.h gettext.h hash-string.h loadinfo.h
258
 
 
259
 
tags: TAGS
260
 
 
261
 
TAGS: $(HEADERS) $(SOURCES)
262
 
        here=`pwd`; cd $(srcdir) && etags -o $$here/TAGS $(HEADERS) $(SOURCES)
263
 
 
264
 
id: ID
265
 
 
266
 
ID: $(HEADERS) $(SOURCES)
267
 
        here=`pwd`; cd $(srcdir) && mkid -f$$here/ID $(HEADERS) $(SOURCES)
268
 
 
269
 
 
270
 
mostlyclean:
271
 
        rm -f *.a *.la *.o *.lo core core.*
272
 
        rm -f libintl.h charset.alias ref-add.sed ref-del.sed
273
 
        rm -f -r .libs _libs
274
 
 
275
 
clean: mostlyclean
276
 
 
277
 
distclean: clean
278
 
        rm -f Makefile ID TAGS
279
 
        if test "$(PACKAGE)" = gettext; then \
280
 
          rm -f ChangeLog.inst $(DISTFILES.normal); \
281
 
        else \
282
 
          : ; \
283
 
        fi
284
 
 
285
 
maintainer-clean: distclean
286
 
        @echo "This command is intended for maintainers to use;"
287
 
        @echo "it deletes files that may require special tools to rebuild."
288
 
 
289
 
 
290
 
# GNU gettext needs not contain the file `VERSION' but contains some
291
 
# other files which should not be distributed in other packages.
292
 
distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
293
 
dist distdir: Makefile
294
 
        if test "$(PACKAGE)" = gettext; then \
295
 
          additional="$(DISTFILES.gettext)"; \
296
 
        else \
297
 
          additional="$(DISTFILES.normal)"; \
298
 
        fi; \
299
 
        $(MAKE) $(DISTFILES.common) $(DISTFILES.generated) $$additional; \
300
 
        for file in ChangeLog $(DISTFILES.common) $(DISTFILES.generated) $$additional; do \
301
 
          if test -f $$file; then dir=.; else dir=$(srcdir); fi; \
302
 
          ln $$dir/$$file $(distdir) 2> /dev/null \
303
 
            || cp -p $$dir/$$file $(distdir); \
304
 
        done
305
 
 
306
 
Makefile: Makefile.in ../config.status
307
 
        cd .. \
308
 
          && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
309
 
 
310
 
# Tell versions [3.59,3.63) of GNU make not to export all variables.
311
 
# Otherwise a system limit (for SysV at least) may be exceeded.
312
 
.NOEXPORT: