~ubuntu-branches/ubuntu/trusty/bubblemon/trusty

« back to all changes in this revision

Viewing changes to intl/Makefile.in

  • Committer: Bazaar Package Importer
  • Author(s): Eric Dorland
  • Date: 2005-03-10 01:12:22 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050310011222-co7htx6t24yimvki
Tags: 2.0.4-1
New upstream release. (Closes: #298798)

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.
 
1
# Makefile for directory with message catalog handling library of GNU gettext
 
2
# Copyright (C) 1995-1998, 2000-2003 Free Software Foundation, Inc.
3
3
#
4
4
# This program is free software; you can redistribute it and/or modify it
5
5
# under the terms of the GNU Library General Public License as published
24
24
srcdir = @srcdir@
25
25
top_srcdir = @top_srcdir@
26
26
top_builddir = ..
27
 
VPATH = @srcdir@
 
27
VPATH = $(srcdir)
28
28
 
29
29
prefix = @prefix@
30
30
exec_prefix = @exec_prefix@
40
40
INSTALL = @INSTALL@
41
41
INSTALL_DATA = @INSTALL_DATA@
42
42
MKINSTALLDIRS = @MKINSTALLDIRS@
43
 
mkinstalldirs = $(SHELL) `case "$(MKINSTALLDIRS)" in /*) echo "$(MKINSTALLDIRS)" ;; *) echo "$(top_builddir)/$(MKINSTALLDIRS)" ;; esac`
 
43
mkinstalldirs = $(SHELL) $(MKINSTALLDIRS)
44
44
 
45
45
l = @INTL_LIBTOOL_SUFFIX_PREFIX@
46
46
 
52
52
YFLAGS = --name-prefix=__gettext
53
53
 
54
54
DEFS = -DLOCALEDIR=\"$(localedir)\" -DLOCALE_ALIAS_PATH=\"$(aliaspath)\" \
55
 
-DLIBDIR=\"$(libdir)\" @DEFS@
 
55
-DLIBDIR=\"$(libdir)\" -DIN_LIBINTL \
 
56
-DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"$(libdir)\" -DNO_XMALLOC \
 
57
-Dset_relocation_prefix=libintl_set_relocation_prefix \
 
58
-Drelocate=libintl_relocate \
 
59
-DDEPENDS_ON_LIBICONV=1 @DEFS@
56
60
CPPFLAGS = @CPPFLAGS@
57
61
CFLAGS = @CFLAGS@
58
62
LDFLAGS = @LDFLAGS@
 
63
LIBS = @LIBS@
59
64
 
60
65
COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS)
61
66
 
62
 
HEADERS = $(COMHDRS) libgnuintl.h libgettext.h loadinfo.h
63
 
COMHDRS = gettext.h gettextP.h hash-string.h
64
 
SOURCES = $(COMSRCS) intl-compat.c
65
 
COMSRCS = bindtextdom.c dcgettext.c dgettext.c gettext.c \
66
 
finddomain.c loadmsgcat.c localealias.c textdomain.c l10nflist.c \
67
 
explodename.c dcigettext.c dcngettext.c dngettext.c ngettext.c plural.y \
68
 
localcharset.c
69
 
OBJECTS = @INTLOBJS@ bindtextdom.$lo dcgettext.$lo dgettext.$lo gettext.$lo \
70
 
finddomain.$lo loadmsgcat.$lo localealias.$lo textdomain.$lo l10nflist.$lo \
71
 
explodename.$lo dcigettext.$lo dcngettext.$lo dngettext.$lo ngettext.$lo \
72
 
plural.$lo localcharset.$lo
73
 
GETTOBJS = intl-compat.$lo
 
67
HEADERS = \
 
68
  gmo.h \
 
69
  gettextP.h \
 
70
  hash-string.h \
 
71
  loadinfo.h \
 
72
  plural-exp.h \
 
73
  eval-plural.h \
 
74
  localcharset.h \
 
75
  relocatable.h \
 
76
  os2compat.h \
 
77
  libgnuintl.h.in
 
78
SOURCES = \
 
79
  bindtextdom.c \
 
80
  dcgettext.c \
 
81
  dgettext.c \
 
82
  gettext.c \
 
83
  finddomain.c \
 
84
  loadmsgcat.c \
 
85
  localealias.c \
 
86
  textdomain.c \
 
87
  l10nflist.c \
 
88
  explodename.c \
 
89
  dcigettext.c \
 
90
  dcngettext.c \
 
91
  dngettext.c \
 
92
  ngettext.c \
 
93
  plural.y \
 
94
  plural-exp.c \
 
95
  localcharset.c \
 
96
  relocatable.c \
 
97
  localename.c \
 
98
  log.c \
 
99
  osdep.c \
 
100
  os2compat.c \
 
101
  intl-compat.c
 
102
OBJECTS = \
 
103
  bindtextdom.$lo \
 
104
  dcgettext.$lo \
 
105
  dgettext.$lo \
 
106
  gettext.$lo \
 
107
  finddomain.$lo \
 
108
  loadmsgcat.$lo \
 
109
  localealias.$lo \
 
110
  textdomain.$lo \
 
111
  l10nflist.$lo \
 
112
  explodename.$lo \
 
113
  dcigettext.$lo \
 
114
  dcngettext.$lo \
 
115
  dngettext.$lo \
 
116
  ngettext.$lo \
 
117
  plural.$lo \
 
118
  plural-exp.$lo \
 
119
  localcharset.$lo \
 
120
  relocatable.$lo \
 
121
  localename.$lo \
 
122
  log.$lo \
 
123
  osdep.$lo \
 
124
  intl-compat.$lo
74
125
DISTFILES.common = Makefile.in \
75
126
config.charset locale.alias ref-add.sin ref-del.sin $(HEADERS) $(SOURCES)
76
127
DISTFILES.generated = plural.c
77
128
DISTFILES.normal = VERSION
78
 
DISTFILES.gettext = COPYING.LIB-2 COPYING.LIB-2.1 libintl.glibc
79
 
DISTFILES.obsolete = xopen-msg.sed linux-msg.sed po2tbl.sed.in cat-compat.c
80
 
 
81
 
# Libtool's library version information for libintl.
82
 
# Before making a gettext release, the gettext maintainer must change this
83
 
# according to the libtool documentation, section "Library interface versions".
84
 
# Maintainers of other packages that include the intl directory must *not*
85
 
# change these values.
86
 
LTV_CURRENT=1
87
 
LTV_REVISION=1
88
 
LTV_AGE=0
89
 
 
90
 
.SUFFIXES:
91
 
.SUFFIXES: .c .y .o .lo .sin .sed
92
 
.c.o:
93
 
        $(COMPILE) $<
94
 
.c.lo:
95
 
        $(LIBTOOL) --mode=compile $(COMPILE) $<
96
 
 
97
 
.y.c:
98
 
        $(YACC) $(YFLAGS) --output $@ $<
99
 
        rm -f $*.h
100
 
 
101
 
.sin.sed:
102
 
        sed -e '/^#/d' -e 's/@''PACKAGE''@/@PACKAGE@/g' $< > t-$@
103
 
        mv t-$@ $@
104
 
 
105
 
INCLUDES = -I.. -I. -I$(top_srcdir)/intl
 
129
DISTFILES.gettext = COPYING.LIB-2.0 COPYING.LIB-2.1 libintl.glibc \
 
130
Makefile.vms libgnuintl.h.msvc-shared README.woe32 Makefile.msvc
 
131
DISTFILES.obsolete = xopen-msg.sed linux-msg.sed po2tbl.sed.in cat-compat.c \
 
132
COPYING.LIB-2 gettext.h libgettext.h plural-eval.c libgnuintl.h
106
133
 
107
134
all: all-@USE_INCLUDED_LIBINTL@
108
135
all-yes: libintl.$la libintl.h charset.alias ref-add.sed ref-del.sed
118
145
libintl.la libgnuintl.la: $(OBJECTS)
119
146
        $(LIBTOOL) --mode=link \
120
147
          $(CC) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS) $(LDFLAGS) -o $@ \
121
 
          $(OBJECTS) @LIBICONV@ \
 
148
          $(OBJECTS) @LTLIBICONV@ $(LIBS) -lc \
122
149
          -version-info $(LTV_CURRENT):$(LTV_REVISION):$(LTV_AGE) \
123
150
          -rpath $(libdir) \
124
151
          -no-undefined
125
152
 
 
153
# Libtool's library version information for libintl.
 
154
# Before making a gettext release, the gettext maintainer must change this
 
155
# according to the libtool documentation, section "Library interface versions".
 
156
# Maintainers of other packages that include the intl directory must *not*
 
157
# change these values.
 
158
LTV_CURRENT=5
 
159
LTV_REVISION=0
 
160
LTV_AGE=3
 
161
 
 
162
.SUFFIXES:
 
163
.SUFFIXES: .c .y .o .lo .sin .sed
 
164
 
 
165
.c.o:
 
166
        $(COMPILE) $<
 
167
 
 
168
.y.c:
 
169
        $(YACC) $(YFLAGS) --output $@ $<
 
170
        rm -f $*.h
 
171
 
 
172
bindtextdom.lo: $(srcdir)/bindtextdom.c
 
173
        $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/bindtextdom.c
 
174
dcgettext.lo: $(srcdir)/dcgettext.c
 
175
        $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dcgettext.c
 
176
dgettext.lo: $(srcdir)/dgettext.c
 
177
        $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dgettext.c
 
178
gettext.lo: $(srcdir)/gettext.c
 
179
        $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/gettext.c
 
180
finddomain.lo: $(srcdir)/finddomain.c
 
181
        $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/finddomain.c
 
182
loadmsgcat.lo: $(srcdir)/loadmsgcat.c
 
183
        $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/loadmsgcat.c
 
184
localealias.lo: $(srcdir)/localealias.c
 
185
        $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/localealias.c
 
186
textdomain.lo: $(srcdir)/textdomain.c
 
187
        $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/textdomain.c
 
188
l10nflist.lo: $(srcdir)/l10nflist.c
 
189
        $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/l10nflist.c
 
190
explodename.lo: $(srcdir)/explodename.c
 
191
        $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/explodename.c
 
192
dcigettext.lo: $(srcdir)/dcigettext.c
 
193
        $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dcigettext.c
 
194
dcngettext.lo: $(srcdir)/dcngettext.c
 
195
        $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dcngettext.c
 
196
dngettext.lo: $(srcdir)/dngettext.c
 
197
        $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dngettext.c
 
198
ngettext.lo: $(srcdir)/ngettext.c
 
199
        $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/ngettext.c
 
200
plural.lo: $(srcdir)/plural.c
 
201
        $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/plural.c
 
202
plural-exp.lo: $(srcdir)/plural-exp.c
 
203
        $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/plural-exp.c
 
204
localcharset.lo: $(srcdir)/localcharset.c
 
205
        $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/localcharset.c
 
206
relocatable.lo: $(srcdir)/relocatable.c
 
207
        $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/relocatable.c
 
208
localename.lo: $(srcdir)/localename.c
 
209
        $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/localename.c
 
210
log.lo: $(srcdir)/log.c
 
211
        $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/log.c
 
212
osdep.lo: $(srcdir)/osdep.c
 
213
        $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/osdep.c
 
214
intl-compat.lo: $(srcdir)/intl-compat.c
 
215
        $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/intl-compat.c
 
216
 
 
217
ref-add.sed: $(srcdir)/ref-add.sin
 
218
        sed -e '/^#/d' -e 's/@''PACKAGE''@/@PACKAGE@/g' $(srcdir)/ref-add.sin > t-ref-add.sed
 
219
        mv t-ref-add.sed ref-add.sed
 
220
ref-del.sed: $(srcdir)/ref-del.sin
 
221
        sed -e '/^#/d' -e 's/@''PACKAGE''@/@PACKAGE@/g' $(srcdir)/ref-del.sin > t-ref-del.sed
 
222
        mv t-ref-del.sed ref-del.sed
 
223
 
 
224
INCLUDES = -I. -I$(srcdir) -I..
 
225
 
 
226
libgnuintl.h: $(srcdir)/libgnuintl.h.in
 
227
        cp $(srcdir)/libgnuintl.h.in libgnuintl.h
 
228
 
126
229
libintl.h: libgnuintl.h
127
 
        cp $(srcdir)/libgnuintl.h libintl.h
 
230
        cp libgnuintl.h libintl.h
128
231
 
129
 
charset.alias: config.charset
 
232
charset.alias: $(srcdir)/config.charset
130
233
        $(SHELL) $(srcdir)/config.charset '@host@' > t-$@
131
234
        mv t-$@ $@
132
235
 
133
236
check: all
134
237
 
135
 
# This installation goal is only used in GNU gettext.  Packages which
136
 
# only use the library should use install instead.
137
 
 
138
238
# We must not install the libintl.h/libintl.a files if we are on a
139
239
# system which has the GNU gettext() function in its C library or in a
140
240
# separate library.
142
242
# package, you have to use `configure --with-included-gettext'.
143
243
install: install-exec install-data
144
244
install-exec: all
145
 
        if test "$(PACKAGE)" = "gettext" \
146
 
           && test '@INTLOBJS@' = '$(GETTOBJS)'; then \
 
245
        if { test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; } \
 
246
           && test '@USE_INCLUDED_LIBINTL@' = yes; then \
147
247
          $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir); \
148
248
          $(INSTALL_DATA) libintl.h $(DESTDIR)$(includedir)/libintl.h; \
149
249
          $(LIBTOOL) --mode=install \
150
250
            $(INSTALL_DATA) libintl.$la $(DESTDIR)$(libdir)/libintl.$la; \
 
251
          if test "@RELOCATABLE@" = yes; then \
 
252
            dependencies=`sed -n -e 's,^dependency_libs=\(.*\),\1,p' < $(DESTDIR)$(libdir)/libintl.la | sed -e "s,^',," -e "s,'\$$,,"`; \
 
253
            if test -n "$dependencies"; then \
 
254
              rm -f $(DESTDIR)$(libdir)/libintl.la; \
 
255
            fi; \
 
256
          fi; \
 
257
        else \
 
258
          : ; \
 
259
        fi
 
260
        if test "$(PACKAGE)" = "gettext-tools" \
 
261
           && test '@USE_INCLUDED_LIBINTL@' = no; then \
 
262
          $(mkinstalldirs) $(DESTDIR)$(libdir); \
 
263
          $(LIBTOOL) --mode=install \
 
264
            $(INSTALL_DATA) libgnuintl.$la $(DESTDIR)$(libdir)/libgnuintl.$la; \
 
265
          rm -f $(DESTDIR)$(libdir)/preloadable_libintl.so; \
 
266
          $(INSTALL_DATA) $(DESTDIR)$(libdir)/libgnuintl.so $(DESTDIR)$(libdir)/preloadable_libintl.so; \
 
267
          $(LIBTOOL) --mode=uninstall \
 
268
            rm -f $(DESTDIR)$(libdir)/libgnuintl.$la; \
151
269
        else \
152
270
          : ; \
153
271
        fi
154
272
        if test '@USE_INCLUDED_LIBINTL@' = yes; then \
155
 
          $(mkinstalldirs) $(DESTDIR)$(libdir); \
 
273
          test @GLIBC21@ != no || $(mkinstalldirs) $(DESTDIR)$(libdir); \
156
274
          temp=$(DESTDIR)$(libdir)/t-charset.alias; \
157
275
          dest=$(DESTDIR)$(libdir)/charset.alias; \
158
276
          if test -f $(DESTDIR)$(libdir)/charset.alias; then \
181
299
          : ; \
182
300
        fi
183
301
install-data: all
184
 
        if test "$(PACKAGE)" = "gettext"; then \
 
302
        if test "$(PACKAGE)" = "gettext-tools"; then \
185
303
          $(mkinstalldirs) $(DESTDIR)$(gettextsrcdir); \
186
304
          $(INSTALL_DATA) VERSION $(DESTDIR)$(gettextsrcdir)/VERSION; \
187
305
          $(INSTALL_DATA) ChangeLog.inst $(DESTDIR)$(gettextsrcdir)/ChangeLog; \
188
 
          dists="COPYING.LIB-2 COPYING.LIB-2.1 $(DISTFILES.common)"; \
 
306
          dists="COPYING.LIB-2.0 COPYING.LIB-2.1 $(DISTFILES.common)"; \
189
307
          for file in $$dists; do \
190
308
            $(INSTALL_DATA) $(srcdir)/$$file \
191
309
                            $(DESTDIR)$(gettextsrcdir)/$$file; \
205
323
          : ; \
206
324
        fi
207
325
 
 
326
install-strip: install
 
327
 
 
328
installdirs:
 
329
        if { test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; } \
 
330
           && test '@USE_INCLUDED_LIBINTL@' = yes; then \
 
331
          $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir); \
 
332
        else \
 
333
          : ; \
 
334
        fi
 
335
        if test "$(PACKAGE)" = "gettext-tools" \
 
336
           && test '@USE_INCLUDED_LIBINTL@' = no; then \
 
337
          $(mkinstalldirs) $(DESTDIR)$(libdir); \
 
338
        else \
 
339
          : ; \
 
340
        fi
 
341
        if test '@USE_INCLUDED_LIBINTL@' = yes; then \
 
342
          test @GLIBC21@ != no || $(mkinstalldirs) $(DESTDIR)$(libdir); \
 
343
          $(mkinstalldirs) $(DESTDIR)$(localedir); \
 
344
        else \
 
345
          : ; \
 
346
        fi
 
347
        if test "$(PACKAGE)" = "gettext-tools"; then \
 
348
          $(mkinstalldirs) $(DESTDIR)$(gettextsrcdir); \
 
349
        else \
 
350
          : ; \
 
351
        fi
 
352
 
208
353
# Define this as empty until I found a useful application.
209
354
installcheck:
210
355
 
211
356
uninstall:
212
 
        if test "$(PACKAGE)" = "gettext" \
213
 
           && test '@INTLOBJS@' = '$(GETTOBJS)'; then \
 
357
        if { test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; } \
 
358
           && test '@USE_INCLUDED_LIBINTL@' = yes; then \
214
359
          rm -f $(DESTDIR)$(includedir)/libintl.h; \
215
360
          $(LIBTOOL) --mode=uninstall \
216
361
            rm -f $(DESTDIR)$(libdir)/libintl.$la; \
217
362
        else \
218
363
          : ; \
219
364
        fi
 
365
        if test "$(PACKAGE)" = "gettext-tools" \
 
366
           && test '@USE_INCLUDED_LIBINTL@' = no; then \
 
367
          rm -f $(DESTDIR)$(libdir)/preloadable_libintl.so; \
 
368
        else \
 
369
          : ; \
 
370
        fi
220
371
        if test '@USE_INCLUDED_LIBINTL@' = yes; then \
221
372
          if test -f $(DESTDIR)$(libdir)/charset.alias; then \
222
373
            temp=$(DESTDIR)$(libdir)/t-charset.alias; \
243
394
        else \
244
395
          : ; \
245
396
        fi
246
 
        if test "$(PACKAGE)" = "gettext"; then \
247
 
          for file in VERSION ChangeLog COPYING.LIB-2 COPYING.LIB-2.1 $(DISTFILES.common) $(DISTFILES.generated); do \
 
397
        if test "$(PACKAGE)" = "gettext-tools"; then \
 
398
          for file in VERSION ChangeLog COPYING.LIB-2.0 COPYING.LIB-2.1 $(DISTFILES.common) $(DISTFILES.generated); do \
248
399
            rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
249
400
          done; \
250
401
        else \
251
402
          : ; \
252
403
        fi
253
404
 
254
 
info dvi:
 
405
info dvi ps pdf html:
255
406
 
256
407
$(OBJECTS): ../config.h libgnuintl.h
257
 
bindtextdom.$lo finddomain.$lo loadmsgcat.$lo: gettextP.h gettext.h loadinfo.h
258
 
dcgettext.$lo: gettextP.h gettext.h hash-string.h loadinfo.h
 
408
bindtextdom.$lo dcgettext.$lo dcigettext.$lo dcngettext.$lo dgettext.$lo dngettext.$lo finddomain.$lo gettext.$lo intl-compat.$lo loadmsgcat.$lo localealias.$lo ngettext.$lo textdomain.$lo: $(srcdir)/gettextP.h $(srcdir)/gmo.h $(srcdir)/loadinfo.h
 
409
dcigettext.$lo loadmsgcat.$lo: $(srcdir)/hash-string.h
 
410
explodename.$lo l10nflist.$lo: $(srcdir)/loadinfo.h
 
411
dcigettext.$lo loadmsgcat.$lo plural.$lo plural-exp.$lo: $(srcdir)/plural-exp.h
 
412
dcigettext.$lo: $(srcdir)/eval-plural.h
 
413
localcharset.$lo: $(srcdir)/localcharset.h
 
414
localealias.$lo localcharset.$lo relocatable.$lo: $(srcdir)/relocatable.h
259
415
 
260
416
tags: TAGS
261
417
 
262
418
TAGS: $(HEADERS) $(SOURCES)
263
419
        here=`pwd`; cd $(srcdir) && etags -o $$here/TAGS $(HEADERS) $(SOURCES)
264
420
 
 
421
ctags: CTAGS
 
422
 
 
423
CTAGS: $(HEADERS) $(SOURCES)
 
424
        here=`pwd`; cd $(srcdir) && ctags -o $$here/CTAGS $(HEADERS) $(SOURCES)
 
425
 
265
426
id: ID
266
427
 
267
428
ID: $(HEADERS) $(SOURCES)
269
430
 
270
431
 
271
432
mostlyclean:
272
 
        rm -f *.a *.la *.o *.lo core core.*
273
 
        rm -f libintl.h charset.alias ref-add.sed ref-del.sed
 
433
        rm -f *.a *.la *.o *.obj *.lo core core.*
 
434
        rm -f libgnuintl.h libintl.h charset.alias ref-add.sed ref-del.sed
274
435
        rm -f -r .libs _libs
275
436
 
276
437
clean: mostlyclean
277
438
 
278
439
distclean: clean
279
440
        rm -f Makefile ID TAGS
280
 
        if test "$(PACKAGE)" = gettext; then \
 
441
        if test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; then \
281
442
          rm -f ChangeLog.inst $(DISTFILES.normal); \
282
443
        else \
283
444
          : ; \
292
453
# other files which should not be distributed in other packages.
293
454
distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
294
455
dist distdir: Makefile
295
 
        if test "$(PACKAGE)" = gettext; then \
296
 
          additional="$(DISTFILES.gettext)"; \
 
456
        if test "$(PACKAGE)" = "gettext-tools"; then \
 
457
          : ; \
297
458
        else \
298
 
          additional="$(DISTFILES.normal)"; \
299
 
        fi; \
300
 
        $(MAKE) $(DISTFILES.common) $(DISTFILES.generated) $$additional; \
301
 
        for file in ChangeLog $(DISTFILES.common) $(DISTFILES.generated) $$additional; do \
302
 
          if test -f $$file; then dir=.; else dir=$(srcdir); fi; \
303
 
          ln $$dir/$$file $(distdir) 2> /dev/null \
304
 
            || cp -p $$dir/$$file $(distdir); \
305
 
        done
 
459
          if test "$(PACKAGE)" = "gettext-runtime"; then \
 
460
            additional="$(DISTFILES.gettext)"; \
 
461
          else \
 
462
            additional="$(DISTFILES.normal)"; \
 
463
          fi; \
 
464
          $(MAKE) $(DISTFILES.common) $(DISTFILES.generated) $$additional; \
 
465
          for file in ChangeLog $(DISTFILES.common) $(DISTFILES.generated) $$additional; do \
 
466
            if test -f $$file; then dir=.; else dir=$(srcdir); fi; \
 
467
            cp -p $$dir/$$file $(distdir); \
 
468
          done; \
 
469
        fi
306
470
 
307
 
Makefile: Makefile.in ../config.status
308
 
        cd .. \
309
 
          && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
 
471
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
 
472
        cd $(top_builddir) && $(SHELL) ./config.status
 
473
# This would be more efficient, but doesn't work any more with autoconf-2.57,
 
474
# when AC_CONFIG_FILES([intl/Makefile:somedir/Makefile.in]) is used.
 
475
#       cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
310
476
 
311
477
# Tell versions [3.59,3.63) of GNU make not to export all variables.
312
478
# Otherwise a system limit (for SysV at least) may be exceeded.