Home | History | Annotate | Download | only in intl
      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 
     19 PACKAGE = @PACKAGE@
     20 VERSION = @VERSION@
     21 
     22 SHELL = /bin/sh
     23 
     24 srcdir = @srcdir@
     25 top_srcdir = @top_srcdir@
     26 top_builddir = ..
     27 VPATH = $(srcdir)
     28 
     29 prefix = @prefix@
     30 exec_prefix = @exec_prefix@
     31 datarootdir = @datarootdir@
     32 transform = @program_transform_name@
     33 libdir = @libdir@
     34 includedir = @includedir@
     35 datadir = @datadir@
     36 localedir = $(datadir)/locale
     37 gettextsrcdir = $(datadir)/gettext/intl
     38 aliaspath = $(localedir)
     39 subdir = intl
     40 
     41 INSTALL = @INSTALL@
     42 INSTALL_DATA = @INSTALL_DATA@
     43 MKINSTALLDIRS = @MKINSTALLDIRS@
     44 mkinstalldirs = $(SHELL) $(MKINSTALLDIRS)
     45 
     46 l = @INTL_LIBTOOL_SUFFIX_PREFIX@
     47 
     48 AR = ar
     49 CC = @CC@
     50 LIBTOOL = @LIBTOOL@
     51 RANLIB = @RANLIB@
     52 YACC = @INTLBISON@ -y -d
     53 YFLAGS = --name-prefix=__gettext
     54 
     55 DEFS = -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@
     61 CPPFLAGS = @CPPFLAGS@
     62 CFLAGS = @CFLAGS@
     63 LDFLAGS = @LDFLAGS@
     64 LIBS = @LIBS@
     65 
     66 COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS)
     67 
     68 HEADERS = \
     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
     83 SOURCES = \
     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
    108 OBJECTS = \
    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
    132 DISTFILES.common = Makefile.in \
    133 config.charset locale.alias ref-add.sin ref-del.sin $(HEADERS) $(SOURCES)
    134 DISTFILES.generated = plural.c
    135 DISTFILES.normal = VERSION
    136 DISTFILES.gettext = COPYING.LIB-2.0 COPYING.LIB-2.1 libintl.glibc \
    137 libgnuintl.h_vms Makefile.vms \
    138 libgnuintl.h.msvc-static libgnuintl.h.msvc-shared README.woe32 Makefile.msvc
    139 DISTFILES.obsolete = xopen-msg.sed linux-msg.sed po2tbl.sed.in cat-compat.c \
    140 COPYING.LIB-2 gettext.h libgettext.h plural-eval.c libgnuintl.h
    141 
    142 all: all-@USE_INCLUDED_LIBINTL@
    143 all-yes: libintl.$la libintl.h charset.alias ref-add.sed ref-del.sed
    144 all-no: all-no-@BUILD_INCLUDED_LIBINTL@
    145 all-no-yes: libgnuintl.$la
    146 all-no-no:
    147 
    148 libintl.a libgnuintl.a: $(OBJECTS)
    149 	@rm -f $@
    150 	@echo "	AR $@"
    151 	@$(AR) cru $@ $(OBJECTS)
    152 	@echo "	RANLIB $@"
    153 	@$(RANLIB) $@
    154 
    155 libintl.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.
    168 LTV_CURRENT=7
    169 LTV_REVISION=0
    170 LTV_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 
    183 bindtextdom.lo: $(srcdir)/bindtextdom.c
    184 	$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/bindtextdom.c
    185 dcgettext.lo: $(srcdir)/dcgettext.c
    186 	$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dcgettext.c
    187 dgettext.lo: $(srcdir)/dgettext.c
    188 	$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dgettext.c
    189 gettext.lo: $(srcdir)/gettext.c
    190 	$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/gettext.c
    191 finddomain.lo: $(srcdir)/finddomain.c
    192 	$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/finddomain.c
    193 loadmsgcat.lo: $(srcdir)/loadmsgcat.c
    194 	$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/loadmsgcat.c
    195 localealias.lo: $(srcdir)/localealias.c
    196 	$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/localealias.c
    197 textdomain.lo: $(srcdir)/textdomain.c
    198 	$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/textdomain.c
    199 l10nflist.lo: $(srcdir)/l10nflist.c
    200 	$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/l10nflist.c
    201 explodename.lo: $(srcdir)/explodename.c
    202 	$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/explodename.c
    203 dcigettext.lo: $(srcdir)/dcigettext.c
    204 	$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dcigettext.c
    205 dcngettext.lo: $(srcdir)/dcngettext.c
    206 	$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dcngettext.c
    207 dngettext.lo: $(srcdir)/dngettext.c
    208 	$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dngettext.c
    209 ngettext.lo: $(srcdir)/ngettext.c
    210 	$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/ngettext.c
    211 plural.lo: $(srcdir)/plural.c
    212 	$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/plural.c
    213 plural-exp.lo: $(srcdir)/plural-exp.c
    214 	$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/plural-exp.c
    215 localcharset.lo: $(srcdir)/localcharset.c
    216 	$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/localcharset.c
    217 relocatable.lo: $(srcdir)/relocatable.c
    218 	$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/relocatable.c
    219 localename.lo: $(srcdir)/localename.c
    220 	$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/localename.c
    221 log.lo: $(srcdir)/log.c
    222 	$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/log.c
    223 printf.lo: $(srcdir)/printf.c
    224 	$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/printf.c
    225 osdep.lo: $(srcdir)/osdep.c
    226 	$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/osdep.c
    227 intl-compat.lo: $(srcdir)/intl-compat.c
    228 	$(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/intl-compat.c
    229 
    230 ref-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
    234 ref-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 
    239 INCLUDES = -I. -I$(srcdir) -I..
    240 
    241 libgnuintl.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 
    249 libintl.h: libgnuintl.h
    250 	@echo "	CP libintl.h"
    251 	@cp libgnuintl.h libintl.h
    252 
    253 charset.alias: $(srcdir)/config.charset
    254 	@echo "	CONFIG.CHARSET $@"
    255 	@$(SHELL) $(srcdir)/config.charset '@host@' > t-$@
    256 	@mv t-$@ $@
    257 
    258 check: 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'.
    265 install: install-exec install-data
    266 install-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
    323 install-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 
    348 install-strip: install
    349 
    350 installdirs:
    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.
    376 installcheck:
    377 
    378 install-shlibs:
    379 
    380 uninstall-shlibs:
    381 
    382 install-shlibs-strip:
    383 
    384 uninstall:
    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 
    433 info dvi ps pdf html:
    434 
    435 $(OBJECTS): libgnuintl.h
    436 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
    437 dcigettext.$lo loadmsgcat.$lo: $(srcdir)/hash-string.h
    438 explodename.$lo l10nflist.$lo: $(srcdir)/loadinfo.h
    439 dcigettext.$lo loadmsgcat.$lo plural.$lo plural-exp.$lo: $(srcdir)/plural-exp.h
    440 dcigettext.$lo: $(srcdir)/eval-plural.h
    441 localcharset.$lo: $(srcdir)/localcharset.h
    442 localealias.$lo localcharset.$lo relocatable.$lo: $(srcdir)/relocatable.h
    443 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
    444 
    445 tags: TAGS
    446 
    447 TAGS: $(HEADERS) $(SOURCES)
    448 	here=`pwd`; cd $(srcdir) && etags -o $$here/TAGS $(HEADERS) $(SOURCES)
    449 
    450 ctags: CTAGS
    451 
    452 CTAGS: $(HEADERS) $(SOURCES)
    453 	here=`pwd`; cd $(srcdir) && ctags -o $$here/CTAGS $(HEADERS) $(SOURCES)
    454 
    455 id: ID
    456 
    457 ID: $(HEADERS) $(SOURCES)
    458 	here=`pwd`; cd $(srcdir) && mkid -f$$here/ID $(HEADERS) $(SOURCES)
    459 
    460 
    461 mostlyclean:
    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 
    466 clean: mostlyclean
    467 
    468 distclean: 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 
    476 maintainer-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.
    483 distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
    484 dist 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 
    500 Makefile: $(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