1
# Makefile for directory with message catalog handling library of GNU gettext
2
# Copyright (C) 1995-1998, 2000-2007 Free Software Foundation, Inc.
4
# This program is free software; you can redistribute it and/or modify it
5
# under the terms of the GNU Library General Public License as published
6
# by the Free Software Foundation; either version 2, or (at your option)
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 GNU
12
# Library General Public License for more details.
14
# You should have received a copy of the GNU Library General Public
15
# License along with this program; if not, write to the Free Software
16
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
25
top_srcdir = @top_srcdir@
28
# The VPATH variables allows builds with $builddir != $srcdir, assuming a
29
# 'make' program that supports VPATH (such as GNU make). This line is removed
30
# by autoconf automatically when "$(srcdir)" = ".".
31
# In this directory, the VPATH handling is particular:
32
# 1. If INTL_LIBTOOL_SUFFIX_PREFIX is 'l' (indicating a build with libtool),
33
# the .c -> .lo rules carefully use $(srcdir), so that VPATH can be omitted.
34
# 2. If PACKAGE = gettext-tools, VPATH _must_ be omitted, because otherwise
35
# 'make' does the wrong thing if GNU gettext was configured with
36
# "./configure --srcdir=`pwd`", namely it gets confused by the .lo and .la
37
# files it finds in srcdir = ../../gettext-runtime/intl.
41
exec_prefix = @exec_prefix@
42
transform = @program_transform_name@
44
includedir = @includedir@
45
datarootdir = @datarootdir@
47
localedir = $(datadir)/locale
48
gettextsrcdir = $(datadir)/gettext/intl
49
aliaspath = $(localedir)
53
INSTALL_DATA = @INSTALL_DATA@
56
# In automake <= 1.9.x, $(mkdir_p) is defined either as "mkdir -p --" or as
57
# "$(mkinstalldirs)" or as "$(install_sh) -d". For these automake versions,
58
# @install_sh@ does not start with $(SHELL), so we add it.
59
# In automake >= 1.10, @mkdir_p@ is derived from ${MKDIR_P}, which is defined
60
# either as "/path/to/mkdir -p" or ".../install-sh -c -d". For these automake
61
# versions, $(mkinstalldirs) and $(install_sh) are unused.
62
mkinstalldirs = $(SHELL) @install_sh@ -d
63
install_sh = $(SHELL) @install_sh@
67
l = @INTL_LIBTOOL_SUFFIX_PREFIX@
73
YACC = @INTLBISON@ -y -d
74
YFLAGS = --name-prefix=__gettext
77
# -DBUILDING_LIBINTL: Change expansion of LIBINTL_DLL_EXPORTED macro.
78
# -DBUILDING_DLL: Change expansion of RELOCATABLE_DLL_EXPORTED macro.
79
DEFS = -DLOCALEDIR=\"$(localedir)\" -DLOCALE_ALIAS_PATH=\"$(aliaspath)\" \
80
-DLIBDIR=\"$(libdir)\" -DBUILDING_LIBINTL -DBUILDING_DLL -DIN_LIBINTL \
81
-DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"$(libdir)\" -DNO_XMALLOC \
82
-Dset_relocation_prefix=libintl_set_relocation_prefix \
83
-Drelocate=libintl_relocate \
84
-DDEPENDS_ON_LIBICONV=1 @DEFS@
86
CFLAGS = @CFLAGS@ @CFLAG_VISIBILITY@
87
LDFLAGS = @LDFLAGS@ $(LDFLAGS_@WOE32DLL@)
88
LDFLAGS_yes = -Wl,--export-all-symbols
92
COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS)
104
tsearch.h tsearch.c \
106
printf-args.h printf-args.c \
107
printf-parse.h wprintf-parse.h printf-parse.c \
108
vasnprintf.h vasnwprintf.h vasnprintf.c \
169
OBJECTS_RES_yes = libintl.res
171
DISTFILES.common = Makefile.in \
172
config.charset locale.alias ref-add.sin ref-del.sin export.h libintl.rc \
173
$(HEADERS) $(SOURCES)
174
DISTFILES.generated = plural.c
175
DISTFILES.normal = VERSION
176
DISTFILES.gettext = COPYING.LIB-2.0 COPYING.LIB-2.1 libintl.glibc README.woe32
177
DISTFILES.obsolete = xopen-msg.sed linux-msg.sed po2tbl.sed.in cat-compat.c \
178
COPYING.LIB-2 gettext.h libgettext.h plural-eval.c libgnuintl.h \
179
libgnuintl.h_vms Makefile.vms libgnuintl.h.msvc-static \
180
libgnuintl.h.msvc-shared Makefile.msvc
182
all: all-@USE_INCLUDED_LIBINTL@
183
all-yes: libintl.$la libintl.h charset.alias ref-add.sed ref-del.sed
184
all-no: all-no-@BUILD_INCLUDED_LIBINTL@
185
all-no-yes: libgnuintl.$la
188
libintl.a libgnuintl.a: $(OBJECTS)
190
$(AR) cru $@ $(OBJECTS)
193
libintl.la libgnuintl.la: $(OBJECTS) $(OBJECTS_RES_@WOE32@)
194
$(LIBTOOL) --mode=link \
195
$(CC) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS) $(LDFLAGS) -o $@ \
196
$(OBJECTS) @LTLIBICONV@ @INTL_MACOSX_LIBS@ $(LIBS) @LTLIBTHREAD@ @LTLIBC@ \
197
$(OBJECTS_RES_@WOE32@) \
198
-version-info $(LTV_CURRENT):$(LTV_REVISION):$(LTV_AGE) \
202
# Libtool's library version information for libintl.
203
# Before making a gettext release, the gettext maintainer must change this
204
# according to the libtool documentation, section "Library interface versions".
205
# Maintainers of other packages that include the intl directory must *not*
206
# change these values.
212
.SUFFIXES: .c .y .o .lo .sin .sed
218
$(YACC) $(YFLAGS) --output $@ $<
221
bindtextdom.lo: $(srcdir)/bindtextdom.c
222
$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/bindtextdom.c
223
dcgettext.lo: $(srcdir)/dcgettext.c
224
$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dcgettext.c
225
dgettext.lo: $(srcdir)/dgettext.c
226
$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dgettext.c
227
gettext.lo: $(srcdir)/gettext.c
228
$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/gettext.c
229
finddomain.lo: $(srcdir)/finddomain.c
230
$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/finddomain.c
231
hash-string.lo: $(srcdir)/hash-string.c
232
$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/hash-string.c
233
loadmsgcat.lo: $(srcdir)/loadmsgcat.c
234
$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/loadmsgcat.c
235
localealias.lo: $(srcdir)/localealias.c
236
$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/localealias.c
237
textdomain.lo: $(srcdir)/textdomain.c
238
$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/textdomain.c
239
l10nflist.lo: $(srcdir)/l10nflist.c
240
$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/l10nflist.c
241
explodename.lo: $(srcdir)/explodename.c
242
$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/explodename.c
243
dcigettext.lo: $(srcdir)/dcigettext.c
244
$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dcigettext.c
245
dcngettext.lo: $(srcdir)/dcngettext.c
246
$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dcngettext.c
247
dngettext.lo: $(srcdir)/dngettext.c
248
$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dngettext.c
249
ngettext.lo: $(srcdir)/ngettext.c
250
$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/ngettext.c
251
plural.lo: $(srcdir)/plural.c
252
$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/plural.c
253
plural-exp.lo: $(srcdir)/plural-exp.c
254
$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/plural-exp.c
255
localcharset.lo: $(srcdir)/localcharset.c
256
$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/localcharset.c
257
lock.lo: $(srcdir)/lock.c
258
$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/lock.c
259
relocatable.lo: $(srcdir)/relocatable.c
260
$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/relocatable.c
261
langprefs.lo: $(srcdir)/langprefs.c
262
$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/langprefs.c
263
localename.lo: $(srcdir)/localename.c
264
$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/localename.c
265
log.lo: $(srcdir)/log.c
266
$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/log.c
267
printf.lo: $(srcdir)/printf.c
268
$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/printf.c
269
version.lo: $(srcdir)/version.c
270
$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/version.c
271
osdep.lo: $(srcdir)/osdep.c
272
$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/osdep.c
273
intl-compat.lo: $(srcdir)/intl-compat.c
274
$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/intl-compat.c
276
# This rule is executed only on Woe32 systems.
277
# The following sed expressions come from the windres-options script. They are
278
# inlined here, so that they can be written in a Makefile without requiring a
279
# temporary file. They must contain literal newlines rather than semicolons,
280
# so that they work with the sed-3.02 that is shipped with MSYS. We can use
281
# GNU bash's $'\n' syntax to obtain such a newline.
282
libintl.res: $(srcdir)/libintl.rc
284
sed_extract_major='/^[0-9]/{'$${nl}'s/^\([0-9]*\).*/\1/p'$${nl}q$${nl}'}'$${nl}'c\'$${nl}0$${nl}q; \
285
sed_extract_minor='/^[0-9][0-9]*[.][0-9]/{'$${nl}'s/^[0-9]*[.]\([0-9]*\).*/\1/p'$${nl}q$${nl}'}'$${nl}'c\'$${nl}0$${nl}q; \
286
sed_extract_subminor='/^[0-9][0-9]*[.][0-9][0-9]*[.][0-9]/{'$${nl}'s/^[0-9]*[.][0-9]*[.]\([0-9]*\).*/\1/p'$${nl}q$${nl}'}'$${nl}'c\'$${nl}0$${nl}q; \
288
"-DPACKAGE_VERSION_STRING=\\\"$(VERSION)\\\"" \
289
"-DPACKAGE_VERSION_MAJOR="`echo '$(VERSION)' | sed -n -e "$$sed_extract_major"` \
290
"-DPACKAGE_VERSION_MINOR="`echo '$(VERSION)' | sed -n -e "$$sed_extract_minor"` \
291
"-DPACKAGE_VERSION_SUBMINOR="`echo '$(VERSION)' | sed -n -e "$$sed_extract_subminor"` \
292
-i $(srcdir)/libintl.rc -o libintl.res --output-format=coff
294
ref-add.sed: $(srcdir)/ref-add.sin
295
sed -e '/^#/d' -e 's/@''PACKAGE''@/@PACKAGE@/g' $(srcdir)/ref-add.sin > t-ref-add.sed
296
mv t-ref-add.sed ref-add.sed
297
ref-del.sed: $(srcdir)/ref-del.sin
298
sed -e '/^#/d' -e 's/@''PACKAGE''@/@PACKAGE@/g' $(srcdir)/ref-del.sin > t-ref-del.sed
299
mv t-ref-del.sed ref-del.sed
301
INCLUDES = -I. -I$(srcdir) -I..
303
libgnuintl.h: $(srcdir)/libgnuintl.h.in
304
sed -e '/IN_LIBGLOCALE/d' \
305
-e 's,@''HAVE_POSIX_PRINTF''@,@HAVE_POSIX_PRINTF@,g' \
306
-e 's,@''HAVE_ASPRINTF''@,@HAVE_ASPRINTF@,g' \
307
-e 's,@''HAVE_SNPRINTF''@,@HAVE_SNPRINTF@,g' \
308
-e 's,@''HAVE_WPRINTF''@,@HAVE_WPRINTF@,g' \
309
< $(srcdir)/libgnuintl.h.in \
310
| if test '@WOE32DLL@' = yes; then \
311
sed -e 's/extern \([^()]*\);/extern __declspec (dllimport) \1;/'; \
315
| sed -e 's/extern \([^"]\)/extern LIBINTL_DLL_EXPORTED \1/' \
316
-e "/#define _LIBINTL_H/r $(srcdir)/export.h" \
317
| sed -e 's,@''HAVE_VISIBILITY''@,@HAVE_VISIBILITY@,g' \
320
libintl.h: $(srcdir)/libgnuintl.h.in
321
sed -e '/IN_LIBGLOCALE/d' \
322
-e 's,@''HAVE_POSIX_PRINTF''@,@HAVE_POSIX_PRINTF@,g' \
323
-e 's,@''HAVE_ASPRINTF''@,@HAVE_ASPRINTF@,g' \
324
-e 's,@''HAVE_SNPRINTF''@,@HAVE_SNPRINTF@,g' \
325
-e 's,@''HAVE_WPRINTF''@,@HAVE_WPRINTF@,g' \
326
< $(srcdir)/libgnuintl.h.in > libintl.h
328
charset.alias: $(srcdir)/config.charset
329
$(SHELL) $(srcdir)/config.charset '@host@' > t-$@
334
# We must not install the libintl.h/libintl.a files if we are on a
335
# system which has the GNU gettext() function in its C library or in a
337
# If you want to use the one which comes with this version of the
338
# package, you have to use `configure --with-included-gettext'.
339
install: install-exec install-data
341
if { test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; } \
342
&& test '@USE_INCLUDED_LIBINTL@' = yes; then \
343
$(mkdir_p) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir); \
344
$(INSTALL_DATA) libintl.h $(DESTDIR)$(includedir)/libintl.h; \
345
$(LIBTOOL) --mode=install \
346
$(INSTALL_DATA) libintl.$la $(DESTDIR)$(libdir)/libintl.$la; \
347
if test "@RELOCATABLE@" = yes; then \
348
dependencies=`sed -n -e 's,^dependency_libs=\(.*\),\1,p' < $(DESTDIR)$(libdir)/libintl.la | sed -e "s,^',," -e "s,'\$$,,"`; \
349
if test -n "$$dependencies"; then \
350
rm -f $(DESTDIR)$(libdir)/libintl.la; \
356
if test "$(PACKAGE)" = "gettext-tools" \
357
&& test '@USE_INCLUDED_LIBINTL@' = no \
358
&& test @GLIBC2@ != no; then \
359
$(mkdir_p) $(DESTDIR)$(libdir); \
360
$(LIBTOOL) --mode=install \
361
$(INSTALL_DATA) libgnuintl.$la $(DESTDIR)$(libdir)/libgnuintl.$la; \
362
rm -f $(DESTDIR)$(libdir)/preloadable_libintl.so; \
363
$(INSTALL_DATA) $(DESTDIR)$(libdir)/libgnuintl.so $(DESTDIR)$(libdir)/preloadable_libintl.so; \
364
$(LIBTOOL) --mode=uninstall \
365
rm -f $(DESTDIR)$(libdir)/libgnuintl.$la; \
369
if test '@USE_INCLUDED_LIBINTL@' = yes; then \
370
test @GLIBC21@ != no || $(mkdir_p) $(DESTDIR)$(libdir); \
371
temp=$(DESTDIR)$(libdir)/t-charset.alias; \
372
dest=$(DESTDIR)$(libdir)/charset.alias; \
373
if test -f $(DESTDIR)$(libdir)/charset.alias; then \
374
orig=$(DESTDIR)$(libdir)/charset.alias; \
375
sed -f ref-add.sed $$orig > $$temp; \
376
$(INSTALL_DATA) $$temp $$dest; \
379
if test @GLIBC21@ = no; then \
380
orig=charset.alias; \
381
sed -f ref-add.sed $$orig > $$temp; \
382
$(INSTALL_DATA) $$temp $$dest; \
386
$(mkdir_p) $(DESTDIR)$(localedir); \
387
test -f $(DESTDIR)$(localedir)/locale.alias \
388
&& orig=$(DESTDIR)$(localedir)/locale.alias \
389
|| orig=$(srcdir)/locale.alias; \
390
temp=$(DESTDIR)$(localedir)/t-locale.alias; \
391
dest=$(DESTDIR)$(localedir)/locale.alias; \
392
sed -f ref-add.sed $$orig > $$temp; \
393
$(INSTALL_DATA) $$temp $$dest; \
399
if test "$(PACKAGE)" = "gettext-tools"; then \
400
$(mkdir_p) $(DESTDIR)$(gettextsrcdir); \
401
$(INSTALL_DATA) VERSION $(DESTDIR)$(gettextsrcdir)/VERSION; \
402
$(INSTALL_DATA) ChangeLog.inst $(DESTDIR)$(gettextsrcdir)/ChangeLog; \
403
dists="COPYING.LIB-2.0 COPYING.LIB-2.1 $(DISTFILES.common)"; \
404
for file in $$dists; do \
405
$(INSTALL_DATA) $(srcdir)/$$file \
406
$(DESTDIR)$(gettextsrcdir)/$$file; \
408
chmod a+x $(DESTDIR)$(gettextsrcdir)/config.charset; \
409
dists="$(DISTFILES.generated)"; \
410
for file in $$dists; do \
411
if test -f $$file; then dir=.; else dir=$(srcdir); fi; \
412
$(INSTALL_DATA) $$dir/$$file \
413
$(DESTDIR)$(gettextsrcdir)/$$file; \
415
dists="$(DISTFILES.obsolete)"; \
416
for file in $$dists; do \
417
rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
423
install-strip: install
425
install-dvi install-html install-info install-ps install-pdf:
428
if { test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; } \
429
&& test '@USE_INCLUDED_LIBINTL@' = yes; then \
430
$(mkdir_p) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir); \
434
if test "$(PACKAGE)" = "gettext-tools" \
435
&& test '@USE_INCLUDED_LIBINTL@' = no \
436
&& test @GLIBC2@ != no; then \
437
$(mkdir_p) $(DESTDIR)$(libdir); \
441
if test '@USE_INCLUDED_LIBINTL@' = yes; then \
442
test @GLIBC21@ != no || $(mkdir_p) $(DESTDIR)$(libdir); \
443
$(mkdir_p) $(DESTDIR)$(localedir); \
447
if test "$(PACKAGE)" = "gettext-tools"; then \
448
$(mkdir_p) $(DESTDIR)$(gettextsrcdir); \
453
# Define this as empty until I found a useful application.
457
if { test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; } \
458
&& test '@USE_INCLUDED_LIBINTL@' = yes; then \
459
rm -f $(DESTDIR)$(includedir)/libintl.h; \
460
$(LIBTOOL) --mode=uninstall \
461
rm -f $(DESTDIR)$(libdir)/libintl.$la; \
465
if test "$(PACKAGE)" = "gettext-tools" \
466
&& test '@USE_INCLUDED_LIBINTL@' = no \
467
&& test @GLIBC2@ != no; then \
468
rm -f $(DESTDIR)$(libdir)/preloadable_libintl.so; \
472
if test '@USE_INCLUDED_LIBINTL@' = yes; then \
473
if test -f $(DESTDIR)$(libdir)/charset.alias; then \
474
temp=$(DESTDIR)$(libdir)/t-charset.alias; \
475
dest=$(DESTDIR)$(libdir)/charset.alias; \
476
sed -f ref-del.sed $$dest > $$temp; \
477
if grep '^# Packages using this file: $$' $$temp > /dev/null; then \
480
$(INSTALL_DATA) $$temp $$dest; \
484
if test -f $(DESTDIR)$(localedir)/locale.alias; then \
485
temp=$(DESTDIR)$(localedir)/t-locale.alias; \
486
dest=$(DESTDIR)$(localedir)/locale.alias; \
487
sed -f ref-del.sed $$dest > $$temp; \
488
if grep '^# Packages using this file: $$' $$temp > /dev/null; then \
491
$(INSTALL_DATA) $$temp $$dest; \
498
if test "$(PACKAGE)" = "gettext-tools"; then \
499
for file in VERSION ChangeLog COPYING.LIB-2.0 COPYING.LIB-2.1 $(DISTFILES.common) $(DISTFILES.generated); do \
500
rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
506
info dvi ps pdf html:
508
$(OBJECTS): ../config.h libgnuintl.h
509
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
510
hash-string.$lo dcigettext.$lo loadmsgcat.$lo: $(srcdir)/hash-string.h
511
explodename.$lo l10nflist.$lo: $(srcdir)/loadinfo.h
512
dcigettext.$lo loadmsgcat.$lo plural.$lo plural-exp.$lo: $(srcdir)/plural-exp.h
513
dcigettext.$lo: $(srcdir)/eval-plural.h
514
localcharset.$lo: $(srcdir)/localcharset.h
515
bindtextdom.$lo dcigettext.$lo finddomain.$lo loadmsgcat.$lo localealias.$lo lock.$lo log.$lo: $(srcdir)/lock.h
516
localealias.$lo localcharset.$lo relocatable.$lo: $(srcdir)/relocatable.h
517
printf.$lo: $(srcdir)/printf-args.h $(srcdir)/printf-args.c $(srcdir)/printf-parse.h $(srcdir)/wprintf-parse.h $(srcdir)/xsize.h $(srcdir)/printf-parse.c $(srcdir)/vasnprintf.h $(srcdir)/vasnwprintf.h $(srcdir)/vasnprintf.c
519
# A bison-2.1 generated plural.c includes <libintl.h> if ENABLE_NLS.
520
PLURAL_DEPS_yes = libintl.h
522
plural.$lo: $(PLURAL_DEPS_@USE_INCLUDED_LIBINTL@)
526
TAGS: $(HEADERS) $(SOURCES)
527
here=`pwd`; cd $(srcdir) && etags -o $$here/TAGS $(HEADERS) $(SOURCES)
531
CTAGS: $(HEADERS) $(SOURCES)
532
here=`pwd`; cd $(srcdir) && ctags -o $$here/CTAGS $(HEADERS) $(SOURCES)
536
ID: $(HEADERS) $(SOURCES)
537
here=`pwd`; cd $(srcdir) && mkid -f$$here/ID $(HEADERS) $(SOURCES)
541
rm -f *.a *.la *.o *.obj *.lo libintl.res core core.*
542
rm -f libgnuintl.h libintl.h charset.alias ref-add.sed ref-del.sed
548
rm -f Makefile ID TAGS
549
if test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; then \
550
rm -f ChangeLog.inst $(DISTFILES.normal); \
555
maintainer-clean: distclean
556
@echo "This command is intended for maintainers to use;"
557
@echo "it deletes files that may require special tools to rebuild."
560
# GNU gettext needs not contain the file `VERSION' but contains some
561
# other files which should not be distributed in other packages.
562
distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
563
dist distdir: Makefile
564
if test "$(PACKAGE)" = "gettext-tools"; then \
567
if test "$(PACKAGE)" = "gettext-runtime"; then \
568
additional="$(DISTFILES.gettext)"; \
570
additional="$(DISTFILES.normal)"; \
572
$(MAKE) $(DISTFILES.common) $(DISTFILES.generated) $$additional; \
573
for file in ChangeLog $(DISTFILES.common) $(DISTFILES.generated) $$additional; do \
574
if test -f $$file; then dir=.; else dir=$(srcdir); fi; \
575
cp -p $$dir/$$file $(distdir) || test $$file = Makefile.in || exit 1; \
579
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
580
cd $(top_builddir) && $(SHELL) ./config.status
581
# This would be more efficient, but doesn't work any more with autoconf-2.57,
582
# when AC_CONFIG_FILES([intl/Makefile:somedir/Makefile.in]) is used.
583
# cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
585
# Tell versions [3.59,3.63) of GNU make not to export all variables.
586
# Otherwise a system limit (for SysV at least) may be exceeded.