1# Makefile for directory with message catalog handling library of GNU gettext 2# Copyright (C) 1995-1998, 2000-2003 Free Software Foundation, Inc. 3# 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) 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 GNU 12# Library General Public License for more details. 13# 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 17# USA. 18 19PACKAGE = @PACKAGE@ 20VERSION = @VERSION@ 21 22SHELL = /bin/sh 23 24srcdir = @srcdir@ 25top_srcdir = @top_srcdir@ 26top_builddir = .. 27VPATH = $(srcdir) 28 29prefix = @prefix@ 30exec_prefix = @exec_prefix@ 31datarootdir = @datarootdir@ 32transform = @program_transform_name@ 33libdir = @libdir@ 34includedir = @includedir@ 35datadir = @datadir@ 36localedir = $(datadir)/locale 37gettextsrcdir = $(datadir)/gettext/intl 38aliaspath = $(localedir) 39subdir = intl 40 41INSTALL = @INSTALL@ 42INSTALL_DATA = @INSTALL_DATA@ 43MKINSTALLDIRS = @MKINSTALLDIRS@ 44mkinstalldirs = $(SHELL) $(MKINSTALLDIRS) 45 46l = @INTL_LIBTOOL_SUFFIX_PREFIX@ 47 48AR = ar 49CC = @CC@ 50LIBTOOL = @LIBTOOL@ 51RANLIB = @RANLIB@ 52YACC = @INTLBISON@ -y -d 53YFLAGS = --name-prefix=__gettext 54 55DEFS = -DLOCALEDIR=\"$(localedir)\" -DLOCALE_ALIAS_PATH=\"$(aliaspath)\" \ 56-DLIBDIR=\"$(libdir)\" -DIN_LIBINTL \ 57-DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"$(libdir)\" -DNO_XMALLOC \ 58-Dset_relocation_prefix=libintl_set_relocation_prefix \ 59-Drelocate=libintl_relocate \ 60-DDEPENDS_ON_LIBICONV=1 @DEFS@ 61CPPFLAGS = @CPPFLAGS@ 62CFLAGS = @CFLAGS@ 63LDFLAGS = @LDFLAGS@ 64LIBS = @LIBS@ 65 66COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS) 67 68HEADERS = \ 69 gmo.h \ 70 gettextP.h \ 71 hash-string.h \ 72 loadinfo.h \ 73 plural-exp.h \ 74 eval-plural.h \ 75 localcharset.h \ 76 relocatable.h \ 77 xsize.h \ 78 printf-args.h printf-args.c \ 79 printf-parse.h wprintf-parse.h printf-parse.c \ 80 vasnprintf.h vasnwprintf.h vasnprintf.c \ 81 os2compat.h \ 82 libgnuintl.h.in 83SOURCES = \ 84 bindtextdom.c \ 85 dcgettext.c \ 86 dgettext.c \ 87 gettext.c \ 88 finddomain.c \ 89 loadmsgcat.c \ 90 localealias.c \ 91 textdomain.c \ 92 l10nflist.c \ 93 explodename.c \ 94 dcigettext.c \ 95 dcngettext.c \ 96 dngettext.c \ 97 ngettext.c \ 98 plural.y \ 99 plural-exp.c \ 100 localcharset.c \ 101 relocatable.c \ 102 localename.c \ 103 log.c \ 104 printf.c \ 105 osdep.c \ 106 os2compat.c \ 107 intl-compat.c 108OBJECTS = \ 109 bindtextdom.$lo \ 110 dcgettext.$lo \ 111 dgettext.$lo \ 112 gettext.$lo \ 113 finddomain.$lo \ 114 loadmsgcat.$lo \ 115 localealias.$lo \ 116 textdomain.$lo \ 117 l10nflist.$lo \ 118 explodename.$lo \ 119 dcigettext.$lo \ 120 dcngettext.$lo \ 121 dngettext.$lo \ 122 ngettext.$lo \ 123 plural.$lo \ 124 plural-exp.$lo \ 125 localcharset.$lo \ 126 relocatable.$lo \ 127 localename.$lo \ 128 log.$lo \ 129 printf.$lo \ 130 osdep.$lo \ 131 intl-compat.$lo 132DISTFILES.common = Makefile.in \ 133config.charset locale.alias ref-add.sin ref-del.sin $(HEADERS) $(SOURCES) 134DISTFILES.generated = plural.c 135DISTFILES.normal = VERSION 136DISTFILES.gettext = COPYING.LIB-2.0 COPYING.LIB-2.1 libintl.glibc \ 137libgnuintl.h_vms Makefile.vms \ 138libgnuintl.h.msvc-static libgnuintl.h.msvc-shared README.woe32 Makefile.msvc 139DISTFILES.obsolete = xopen-msg.sed linux-msg.sed po2tbl.sed.in cat-compat.c \ 140COPYING.LIB-2 gettext.h libgettext.h plural-eval.c libgnuintl.h 141 142all: all-@USE_INCLUDED_LIBINTL@ 143all-yes: libintl.$la libintl.h charset.alias ref-add.sed ref-del.sed 144all-no: all-no-@BUILD_INCLUDED_LIBINTL@ 145all-no-yes: libgnuintl.$la 146all-no-no: 147 148libintl.a libgnuintl.a: $(OBJECTS) 149 @rm -f $@ 150 @echo " AR $@" 151 @$(AR) cru $@ $(OBJECTS) 152 @echo " RANLIB $@" 153 @$(RANLIB) $@ 154 155libintl.la libgnuintl.la: $(OBJECTS) 156 $(LIBTOOL) --mode=link \ 157 $(CC) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS) $(LDFLAGS) -o $@ \ 158 $(OBJECTS) @LTLIBICONV@ $(LIBS) -lc \ 159 -version-info $(LTV_CURRENT):$(LTV_REVISION):$(LTV_AGE) \ 160 -rpath $(libdir) \ 161 -no-undefined 162 163# Libtool's library version information for libintl. 164# Before making a gettext release, the gettext maintainer must change this 165# according to the libtool documentation, section "Library interface versions". 166# Maintainers of other packages that include the intl directory must *not* 167# change these values. 168LTV_CURRENT=7 169LTV_REVISION=0 170LTV_AGE=4 171 172.SUFFIXES: 173.SUFFIXES: .c .y .o .lo .sin .sed 174 175.c.o: 176 @echo " CC $<" 177 @$(COMPILE) $< 178 179.y.c: 180 $(YACC) $(YFLAGS) --output $@ $< 181 rm -f $*.h 182 183bindtextdom.lo: $(srcdir)/bindtextdom.c 184 $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/bindtextdom.c 185dcgettext.lo: $(srcdir)/dcgettext.c 186 $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dcgettext.c 187dgettext.lo: $(srcdir)/dgettext.c 188 $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dgettext.c 189gettext.lo: $(srcdir)/gettext.c 190 $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/gettext.c 191finddomain.lo: $(srcdir)/finddomain.c 192 $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/finddomain.c 193loadmsgcat.lo: $(srcdir)/loadmsgcat.c 194 $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/loadmsgcat.c 195localealias.lo: $(srcdir)/localealias.c 196 $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/localealias.c 197textdomain.lo: $(srcdir)/textdomain.c 198 $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/textdomain.c 199l10nflist.lo: $(srcdir)/l10nflist.c 200 $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/l10nflist.c 201explodename.lo: $(srcdir)/explodename.c 202 $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/explodename.c 203dcigettext.lo: $(srcdir)/dcigettext.c 204 $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dcigettext.c 205dcngettext.lo: $(srcdir)/dcngettext.c 206 $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dcngettext.c 207dngettext.lo: $(srcdir)/dngettext.c 208 $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dngettext.c 209ngettext.lo: $(srcdir)/ngettext.c 210 $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/ngettext.c 211plural.lo: $(srcdir)/plural.c 212 $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/plural.c 213plural-exp.lo: $(srcdir)/plural-exp.c 214 $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/plural-exp.c 215localcharset.lo: $(srcdir)/localcharset.c 216 $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/localcharset.c 217relocatable.lo: $(srcdir)/relocatable.c 218 $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/relocatable.c 219localename.lo: $(srcdir)/localename.c 220 $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/localename.c 221log.lo: $(srcdir)/log.c 222 $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/log.c 223printf.lo: $(srcdir)/printf.c 224 $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/printf.c 225osdep.lo: $(srcdir)/osdep.c 226 $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/osdep.c 227intl-compat.lo: $(srcdir)/intl-compat.c 228 $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/intl-compat.c 229 230ref-add.sed: $(srcdir)/ref-add.sin 231 @echo " SED ref-add.sed" 232 @sed -e '/^#/d' -e 's/@''PACKAGE''@/@PACKAGE@/g' $(srcdir)/ref-add.sin > t-ref-add.sed 233 @mv t-ref-add.sed ref-add.sed 234ref-del.sed: $(srcdir)/ref-del.sin 235 @echo " SED ref-del.sed" 236 @sed -e '/^#/d' -e 's/@''PACKAGE''@/@PACKAGE@/g' $(srcdir)/ref-del.sin > t-ref-del.sed 237 @mv t-ref-del.sed ref-del.sed 238 239INCLUDES = -I. -I$(srcdir) -I.. 240 241libgnuintl.h: $(srcdir)/libgnuintl.h.in 242 @echo " SED libgnuintl.h " 243 @sed -e 's,@''HAVE_POSIX_PRINTF''@,@HAVE_POSIX_PRINTF@,g' \ 244 -e 's,@''HAVE_ASPRINTF''@,@HAVE_ASPRINTF@,g' \ 245 -e 's,@''HAVE_SNPRINTF''@,@HAVE_SNPRINTF@,g' \ 246 -e 's,@''HAVE_WPRINTF''@,@HAVE_WPRINTF@,g' \ 247 < $(srcdir)/libgnuintl.h.in > libgnuintl.h 248 249libintl.h: libgnuintl.h 250 @echo " CP libintl.h" 251 @cp libgnuintl.h libintl.h 252 253charset.alias: $(srcdir)/config.charset 254 @echo " CONFIG.CHARSET $@" 255 @$(SHELL) $(srcdir)/config.charset '@host@' > t-$@ 256 @mv t-$@ $@ 257 258check: all 259 260# We must not install the libintl.h/libintl.a files if we are on a 261# system which has the GNU gettext() function in its C library or in a 262# separate library. 263# If you want to use the one which comes with this version of the 264# package, you have to use `configure --with-included-gettext'. 265install: install-exec install-data 266install-exec: all 267 @if { test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; } \ 268 && test '@USE_INCLUDED_LIBINTL@' = yes; then \ 269 $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir); \ 270 $(INSTALL_DATA) libintl.h $(DESTDIR)$(includedir)/libintl.h; \ 271 $(LIBTOOL) --mode=install \ 272 $(INSTALL_DATA) libintl.$la $(DESTDIR)$(libdir)/libintl.$la; \ 273 if test "@RELOCATABLE@" = yes; then \ 274 dependencies=`sed -n -e 's,^dependency_libs=\(.*\),\1,p' < $(DESTDIR)$(libdir)/libintl.la | sed -e "s,^',," -e "s,'\$$,,"`; \ 275 if test -n "$$dependencies"; then \ 276 rm -f $(DESTDIR)$(libdir)/libintl.la; \ 277 fi; \ 278 fi; \ 279 else \ 280 : ; \ 281 fi 282 @if test "$(PACKAGE)" = "gettext-tools" \ 283 && test '@USE_INCLUDED_LIBINTL@' = no; then \ 284 $(mkinstalldirs) $(DESTDIR)$(libdir); \ 285 $(LIBTOOL) --mode=install \ 286 $(INSTALL_DATA) libgnuintl.$la $(DESTDIR)$(libdir)/libgnuintl.$la; \ 287 rm -f $(DESTDIR)$(libdir)/preloadable_libintl.so; \ 288 $(INSTALL_DATA) $(DESTDIR)$(libdir)/libgnuintl.so $(DESTDIR)$(libdir)/preloadable_libintl.so; \ 289 $(LIBTOOL) --mode=uninstall \ 290 rm -f $(DESTDIR)$(libdir)/libgnuintl.$la; \ 291 else \ 292 : ; \ 293 fi 294 if test '@USE_INCLUDED_LIBINTL@' = yes; then \ 295 test @GLIBC21@ != no || $(mkinstalldirs) $(DESTDIR)$(libdir); \ 296 temp=$(DESTDIR)$(libdir)/t-charset.alias; \ 297 dest=$(DESTDIR)$(libdir)/charset.alias; \ 298 if test -f $(DESTDIR)$(libdir)/charset.alias; then \ 299 orig=$(DESTDIR)$(libdir)/charset.alias; \ 300 sed -f ref-add.sed $$orig > $$temp; \ 301 $(INSTALL_DATA) $$temp $$dest; \ 302 rm -f $$temp; \ 303 else \ 304 if test @GLIBC21@ = no; then \ 305 orig=charset.alias; \ 306 sed -f ref-add.sed $$orig > $$temp; \ 307 $(INSTALL_DATA) $$temp $$dest; \ 308 rm -f $$temp; \ 309 fi; \ 310 fi; \ 311 $(mkinstalldirs) $(DESTDIR)$(localedir); \ 312 test -f $(DESTDIR)$(localedir)/locale.alias \ 313 && orig=$(DESTDIR)$(localedir)/locale.alias \ 314 || orig=$(srcdir)/locale.alias; \ 315 temp=$(DESTDIR)$(localedir)/t-locale.alias; \ 316 dest=$(DESTDIR)$(localedir)/locale.alias; \ 317 sed -f ref-add.sed $$orig > $$temp; \ 318 $(INSTALL_DATA) $$temp $$dest; \ 319 rm -f $$temp; \ 320 else \ 321 : ; \ 322 fi 323install-data: all 324 @if test "$(PACKAGE)" = "gettext-tools"; then \ 325 $(mkinstalldirs) $(DESTDIR)$(gettextsrcdir); \ 326 $(INSTALL_DATA) VERSION $(DESTDIR)$(gettextsrcdir)/VERSION; \ 327 $(INSTALL_DATA) ChangeLog.inst $(DESTDIR)$(gettextsrcdir)/ChangeLog; \ 328 dists="COPYING.LIB-2.0 COPYING.LIB-2.1 $(DISTFILES.common)"; \ 329 for file in $$dists; do \ 330 $(INSTALL_DATA) $(srcdir)/$$file \ 331 $(DESTDIR)$(gettextsrcdir)/$$file; \ 332 done; \ 333 chmod a+x $(DESTDIR)$(gettextsrcdir)/config.charset; \ 334 dists="$(DISTFILES.generated)"; \ 335 for file in $$dists; do \ 336 if test -f $$file; then dir=.; else dir=$(srcdir); fi; \ 337 $(INSTALL_DATA) $$dir/$$file \ 338 $(DESTDIR)$(gettextsrcdir)/$$file; \ 339 done; \ 340 dists="$(DISTFILES.obsolete)"; \ 341 for file in $$dists; do \ 342 rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ 343 done; \ 344 else \ 345 : ; \ 346 fi 347 348install-strip: install 349 350installdirs: 351 if { test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; } \ 352 && test '@USE_INCLUDED_LIBINTL@' = yes; then \ 353 $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir); \ 354 else \ 355 : ; \ 356 fi 357 if test "$(PACKAGE)" = "gettext-tools" \ 358 && test '@USE_INCLUDED_LIBINTL@' = no; then \ 359 $(mkinstalldirs) $(DESTDIR)$(libdir); \ 360 else \ 361 : ; \ 362 fi 363 if test '@USE_INCLUDED_LIBINTL@' = yes; then \ 364 test @GLIBC21@ != no || $(mkinstalldirs) $(DESTDIR)$(libdir); \ 365 $(mkinstalldirs) $(DESTDIR)$(localedir); \ 366 else \ 367 : ; \ 368 fi 369 if test "$(PACKAGE)" = "gettext-tools"; then \ 370 $(mkinstalldirs) $(DESTDIR)$(gettextsrcdir); \ 371 else \ 372 : ; \ 373 fi 374 375# Define this as empty until I found a useful application. 376installcheck: 377 378install-shlibs: 379 380uninstall-shlibs: 381 382install-shlibs-strip: 383 384uninstall: 385 if { test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; } \ 386 && test '@USE_INCLUDED_LIBINTL@' = yes; then \ 387 rm -f $(DESTDIR)$(includedir)/libintl.h; \ 388 $(LIBTOOL) --mode=uninstall \ 389 rm -f $(DESTDIR)$(libdir)/libintl.$la; \ 390 else \ 391 : ; \ 392 fi 393 if test "$(PACKAGE)" = "gettext-tools" \ 394 && test '@USE_INCLUDED_LIBINTL@' = no; then \ 395 rm -f $(DESTDIR)$(libdir)/preloadable_libintl.so; \ 396 else \ 397 : ; \ 398 fi 399 if test '@USE_INCLUDED_LIBINTL@' = yes; then \ 400 if test -f $(DESTDIR)$(libdir)/charset.alias; then \ 401 temp=$(DESTDIR)$(libdir)/t-charset.alias; \ 402 dest=$(DESTDIR)$(libdir)/charset.alias; \ 403 sed -f ref-del.sed $$dest > $$temp; \ 404 if grep '^# Packages using this file: $$' $$temp > /dev/null; then \ 405 rm -f $$dest; \ 406 else \ 407 $(INSTALL_DATA) $$temp $$dest; \ 408 fi; \ 409 rm -f $$temp; \ 410 fi; \ 411 if test -f $(DESTDIR)$(localedir)/locale.alias; then \ 412 temp=$(DESTDIR)$(localedir)/t-locale.alias; \ 413 dest=$(DESTDIR)$(localedir)/locale.alias; \ 414 sed -f ref-del.sed $$dest > $$temp; \ 415 if grep '^# Packages using this file: $$' $$temp > /dev/null; then \ 416 rm -f $$dest; \ 417 else \ 418 $(INSTALL_DATA) $$temp $$dest; \ 419 fi; \ 420 rm -f $$temp; \ 421 fi; \ 422 else \ 423 : ; \ 424 fi 425 if test "$(PACKAGE)" = "gettext-tools"; then \ 426 for file in VERSION ChangeLog COPYING.LIB-2.0 COPYING.LIB-2.1 $(DISTFILES.common) $(DISTFILES.generated); do \ 427 rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ 428 done; \ 429 else \ 430 : ; \ 431 fi 432 433info dvi ps pdf html: 434 435$(OBJECTS): libgnuintl.h 436bindtextdom.$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 437dcigettext.$lo loadmsgcat.$lo: $(srcdir)/hash-string.h 438explodename.$lo l10nflist.$lo: $(srcdir)/loadinfo.h 439dcigettext.$lo loadmsgcat.$lo plural.$lo plural-exp.$lo: $(srcdir)/plural-exp.h 440dcigettext.$lo: $(srcdir)/eval-plural.h 441localcharset.$lo: $(srcdir)/localcharset.h 442localealias.$lo localcharset.$lo relocatable.$lo: $(srcdir)/relocatable.h 443printf.$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 444 445tags: TAGS 446 447TAGS: $(HEADERS) $(SOURCES) 448 here=`pwd`; cd $(srcdir) && etags -o $$here/TAGS $(HEADERS) $(SOURCES) 449 450ctags: CTAGS 451 452CTAGS: $(HEADERS) $(SOURCES) 453 here=`pwd`; cd $(srcdir) && ctags -o $$here/CTAGS $(HEADERS) $(SOURCES) 454 455id: ID 456 457ID: $(HEADERS) $(SOURCES) 458 here=`pwd`; cd $(srcdir) && mkid -f$$here/ID $(HEADERS) $(SOURCES) 459 460 461mostlyclean: 462 rm -f *.a *.la *.o *.obj *.lo core core.* 463 rm -f libgnuintl.h libintl.h charset.alias ref-add.sed ref-del.sed 464 rm -f -r .libs _libs 465 466clean: mostlyclean 467 468distclean: clean 469 rm -f Makefile ID TAGS 470 if test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; then \ 471 rm -f ChangeLog.inst $(DISTFILES.normal); \ 472 else \ 473 : ; \ 474 fi 475 476maintainer-clean: distclean 477 @echo "This command is intended for maintainers to use;" 478 @echo "it deletes files that may require special tools to rebuild." 479 480 481# GNU gettext needs not contain the file `VERSION' but contains some 482# other files which should not be distributed in other packages. 483distdir = ../$(PACKAGE)-$(VERSION)/$(subdir) 484dist distdir: Makefile 485 if test "$(PACKAGE)" = "gettext-tools"; then \ 486 : ; \ 487 else \ 488 if test "$(PACKAGE)" = "gettext-runtime"; then \ 489 additional="$(DISTFILES.gettext)"; \ 490 else \ 491 additional="$(DISTFILES.normal)"; \ 492 fi; \ 493 $(MAKE) $(DISTFILES.common) $(DISTFILES.generated) $$additional; \ 494 for file in ChangeLog $(DISTFILES.common) $(DISTFILES.generated) $$additional; do \ 495 if test -f $$file; then dir=.; else dir=$(srcdir); fi; \ 496 cp -p $$dir/$$file $(distdir); \ 497 done; \ 498 fi 499 500Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 501# cd $(top_builddir) && $(SHELL) ./config.status 502# This would be more efficient, but doesn't work any more with autoconf-2.57, 503# when AC_CONFIG_FILES([intl/Makefile:somedir/Makefile.in]) is used. 504 cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status 505 506# Tell versions [3.59,3.63) of GNU make not to export all variables. 507# Otherwise a system limit (for SysV at least) may be exceeded. 508.NOEXPORT: 509