• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/gettext-0.17/gettext-runtime/intl/
1# Makefile for directory with message catalog handling library of GNU gettext
2# Copyright (C) 1995-1998, 2000-2007 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
17# USA.
18
19PACKAGE = gettext-runtime
20VERSION = 0.17
21
22SHELL = /bin/sh
23
24srcdir = .
25top_srcdir = ..
26top_builddir = ..
27
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.
38
39
40prefix = /usr
41exec_prefix = ${prefix}
42transform = s,x,x,
43libdir = ${exec_prefix}/lib
44includedir = ${prefix}/include
45datarootdir = ${prefix}/share
46datadir = ${datarootdir}
47localedir = $(datadir)/locale
48gettextsrcdir = $(datadir)/gettext/intl
49aliaspath = $(localedir)
50subdir = intl
51
52INSTALL = /usr/bin/install -c
53INSTALL_DATA = ${INSTALL} -m 644
54
55# We use $(mkdir_p).
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# $(SHELL) ${TIMEMACHINE_PATH}/gettext-0.17/build-aux/install-sh does not start with $(SHELL), so we add it.
59# In automake >= 1.10, /bin/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.
62mkinstalldirs = $(SHELL) $(SHELL) ${TIMEMACHINE_PATH}/gettext-0.17/build-aux/install-sh -d
63install_sh = $(SHELL) $(SHELL) ${TIMEMACHINE_PATH}/gettext-0.17/build-aux/install-sh
64MKDIR_P = /bin/mkdir -p
65mkdir_p = /bin/mkdir -p
66
67l = l
68
69AR = ar
70CC = mipsel-linux-uclibc-gcc
71LIBTOOL = $(SHELL) $(top_builddir)/libtool
72RANLIB = mipsel-linux-linux26-ranlib
73YACC = bison -y -d
74YFLAGS = --name-prefix=__gettext
75WINDRES = 
76
77# -DBUILDING_LIBINTL: Change expansion of LIBINTL_DLL_EXPORTED macro.
78# -DBUILDING_DLL: Change expansion of RELOCATABLE_DLL_EXPORTED macro.
79DEFS = -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 -DHAVE_CONFIG_H
85CPPFLAGS = -I${TIMEMACHINE_PATH}/build/usr/include
86CFLAGS = -I${PKG_INSTALL_DIR}/usr/include -fvisibility=hidden
87LDFLAGS = -L${PKG_INSTALL_DIR}/usr/lib $(LDFLAGS_no)
88LDFLAGS_yes = -Wl,--export-all-symbols
89LDFLAGS_no =
90LIBS = 
91
92COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS)
93
94HEADERS = \
95  gmo.h \
96  gettextP.h \
97  hash-string.h \
98  loadinfo.h \
99  plural-exp.h \
100  eval-plural.h \
101  localcharset.h \
102  lock.h \
103  relocatable.h \
104  tsearch.h tsearch.c \
105  xsize.h \
106  printf-args.h printf-args.c \
107  printf-parse.h wprintf-parse.h printf-parse.c \
108  vasnprintf.h vasnwprintf.h vasnprintf.c \
109  os2compat.h \
110  libgnuintl.h.in
111SOURCES = \
112  bindtextdom.c \
113  dcgettext.c \
114  dgettext.c \
115  gettext.c \
116  finddomain.c \
117  hash-string.c \
118  loadmsgcat.c \
119  localealias.c \
120  textdomain.c \
121  l10nflist.c \
122  explodename.c \
123  dcigettext.c \
124  dcngettext.c \
125  dngettext.c \
126  ngettext.c \
127  plural.y \
128  plural-exp.c \
129  localcharset.c \
130  lock.c \
131  relocatable.c \
132  langprefs.c \
133  localename.c \
134  log.c \
135  printf.c \
136  version.c \
137  osdep.c \
138  os2compat.c \
139  intl-exports.c \
140  intl-compat.c
141OBJECTS = \
142  bindtextdom.$lo \
143  dcgettext.$lo \
144  dgettext.$lo \
145  gettext.$lo \
146  finddomain.$lo \
147  hash-string.$lo \
148  loadmsgcat.$lo \
149  localealias.$lo \
150  textdomain.$lo \
151  l10nflist.$lo \
152  explodename.$lo \
153  dcigettext.$lo \
154  dcngettext.$lo \
155  dngettext.$lo \
156  ngettext.$lo \
157  plural.$lo \
158  plural-exp.$lo \
159  localcharset.$lo \
160  lock.$lo \
161  relocatable.$lo \
162  langprefs.$lo \
163  localename.$lo \
164  log.$lo \
165  printf.$lo \
166  version.$lo \
167  osdep.$lo \
168  intl-compat.$lo
169OBJECTS_RES_yes = libintl.res
170OBJECTS_RES_no =
171DISTFILES.common = Makefile.in \
172config.charset locale.alias ref-add.sin ref-del.sin export.h libintl.rc \
173$(HEADERS) $(SOURCES)
174DISTFILES.generated = plural.c
175DISTFILES.normal = VERSION
176DISTFILES.gettext = COPYING.LIB-2.0 COPYING.LIB-2.1 libintl.glibc README.woe32
177DISTFILES.obsolete = xopen-msg.sed linux-msg.sed po2tbl.sed.in cat-compat.c \
178COPYING.LIB-2 gettext.h libgettext.h plural-eval.c libgnuintl.h \
179libgnuintl.h_vms Makefile.vms libgnuintl.h.msvc-static \
180libgnuintl.h.msvc-shared Makefile.msvc
181
182all: all-yes
183all-yes: libintl.$la libintl.h charset.alias ref-add.sed ref-del.sed
184all-no: all-no-yes
185all-no-yes: libgnuintl.$la
186all-no-no:
187
188libintl.a libgnuintl.a: $(OBJECTS)
189	rm -f $@
190	$(AR) cru $@ $(OBJECTS)
191	$(RANLIB) $@
192
193libintl.la libgnuintl.la: $(OBJECTS) $(OBJECTS_RES_no)
194	$(LIBTOOL) --tag=CC --mode=link \
195	  $(CC) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS) $(LDFLAGS) -o $@ \
196	  $(OBJECTS) -L${TIMEMACHINE_PATH}/build/usr/lib -liconv -R${TIMEMACHINE_PATH}/build/usr/lib  $(LIBS)  -lc \
197	  $(OBJECTS_RES_no) \
198	  -version-info $(LTV_CURRENT):$(LTV_REVISION):$(LTV_AGE) \
199	  -rpath $(libdir) \
200	  -no-undefined
201
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.
207LTV_CURRENT=8
208LTV_REVISION=2
209LTV_AGE=0
210
211.SUFFIXES:
212.SUFFIXES: .c .y .o .lo .sin .sed
213
214.c.o:
215	$(COMPILE) $<
216
217.y.c:
218	$(YACC) $(YFLAGS) --output $@ $<
219	rm -f $*.h
220
221bindtextdom.lo: $(srcdir)/bindtextdom.c
222	$(LIBTOOL) --tag=CC --mode=compile $(COMPILE) $(srcdir)/bindtextdom.c
223dcgettext.lo: $(srcdir)/dcgettext.c
224	$(LIBTOOL) --tag=CC --mode=compile $(COMPILE) $(srcdir)/dcgettext.c
225dgettext.lo: $(srcdir)/dgettext.c
226	$(LIBTOOL) --tag=CC --mode=compile $(COMPILE) $(srcdir)/dgettext.c
227gettext.lo: $(srcdir)/gettext.c
228	$(LIBTOOL) --tag=CC --mode=compile $(COMPILE) $(srcdir)/gettext.c
229finddomain.lo: $(srcdir)/finddomain.c
230	$(LIBTOOL) --tag=CC --mode=compile $(COMPILE) $(srcdir)/finddomain.c
231hash-string.lo: $(srcdir)/hash-string.c
232	$(LIBTOOL) --tag=CC --mode=compile $(COMPILE) $(srcdir)/hash-string.c
233loadmsgcat.lo: $(srcdir)/loadmsgcat.c
234	$(LIBTOOL) --tag=CC --mode=compile $(COMPILE) $(srcdir)/loadmsgcat.c
235localealias.lo: $(srcdir)/localealias.c
236	$(LIBTOOL) --tag=CC --mode=compile $(COMPILE) $(srcdir)/localealias.c
237textdomain.lo: $(srcdir)/textdomain.c
238	$(LIBTOOL) --tag=CC --mode=compile $(COMPILE) $(srcdir)/textdomain.c
239l10nflist.lo: $(srcdir)/l10nflist.c
240	$(LIBTOOL) --tag=CC --mode=compile $(COMPILE) $(srcdir)/l10nflist.c
241explodename.lo: $(srcdir)/explodename.c
242	$(LIBTOOL) --tag=CC --mode=compile $(COMPILE) $(srcdir)/explodename.c
243dcigettext.lo: $(srcdir)/dcigettext.c
244	$(LIBTOOL) --tag=CC --mode=compile $(COMPILE) $(srcdir)/dcigettext.c
245dcngettext.lo: $(srcdir)/dcngettext.c
246	$(LIBTOOL) --tag=CC --mode=compile $(COMPILE) $(srcdir)/dcngettext.c
247dngettext.lo: $(srcdir)/dngettext.c
248	$(LIBTOOL) --tag=CC --mode=compile $(COMPILE) $(srcdir)/dngettext.c
249ngettext.lo: $(srcdir)/ngettext.c
250	$(LIBTOOL) --tag=CC --mode=compile $(COMPILE) $(srcdir)/ngettext.c
251plural.lo: $(srcdir)/plural.c
252	$(LIBTOOL) --tag=CC --mode=compile $(COMPILE) $(srcdir)/plural.c
253plural-exp.lo: $(srcdir)/plural-exp.c
254	$(LIBTOOL) --tag=CC --mode=compile $(COMPILE) $(srcdir)/plural-exp.c
255localcharset.lo: $(srcdir)/localcharset.c
256	$(LIBTOOL) --tag=CC --mode=compile $(COMPILE) $(srcdir)/localcharset.c
257lock.lo: $(srcdir)/lock.c
258	$(LIBTOOL) --tag=CC --mode=compile $(COMPILE) $(srcdir)/lock.c
259relocatable.lo: $(srcdir)/relocatable.c
260	$(LIBTOOL) --tag=CC --mode=compile $(COMPILE) $(srcdir)/relocatable.c
261langprefs.lo: $(srcdir)/langprefs.c
262	$(LIBTOOL) --tag=CC --mode=compile $(COMPILE) $(srcdir)/langprefs.c
263localename.lo: $(srcdir)/localename.c
264	$(LIBTOOL) --tag=CC --mode=compile $(COMPILE) $(srcdir)/localename.c
265log.lo: $(srcdir)/log.c
266	$(LIBTOOL) --tag=CC --mode=compile $(COMPILE) $(srcdir)/log.c
267printf.lo: $(srcdir)/printf.c
268	$(LIBTOOL) --tag=CC --mode=compile $(COMPILE) $(srcdir)/printf.c
269version.lo: $(srcdir)/version.c
270	$(LIBTOOL) --tag=CC --mode=compile $(COMPILE) $(srcdir)/version.c
271osdep.lo: $(srcdir)/osdep.c
272	$(LIBTOOL) --tag=CC --mode=compile $(COMPILE) $(srcdir)/osdep.c
273intl-compat.lo: $(srcdir)/intl-compat.c
274	$(LIBTOOL) --tag=CC --mode=compile $(COMPILE) $(srcdir)/intl-compat.c
275
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.
282libintl.res: $(srcdir)/libintl.rc
283	nl=$$'\n'; \
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; \
287	$(WINDRES) \
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
293
294ref-add.sed: $(srcdir)/ref-add.sin
295	sed -e '/^#/d' -e 's/@''PACKAGE''@/gettext-runtime/g' $(srcdir)/ref-add.sin > t-ref-add.sed
296	mv t-ref-add.sed ref-add.sed
297ref-del.sed: $(srcdir)/ref-del.sin
298	sed -e '/^#/d' -e 's/@''PACKAGE''@/gettext-runtime/g' $(srcdir)/ref-del.sin > t-ref-del.sed
299	mv t-ref-del.sed ref-del.sed
300
301INCLUDES = -I. -I$(srcdir) -I..
302
303libgnuintl.h: $(srcdir)/libgnuintl.h.in
304	sed -e '/IN_LIBGLOCALE/d' \
305	    -e 's,@''HAVE_POSIX_PRINTF''@,1,g' \
306	    -e 's,@''HAVE_ASPRINTF''@,1,g' \
307	    -e 's,@''HAVE_SNPRINTF''@,1,g' \
308	    -e 's,@''HAVE_WPRINTF''@,0,g' \
309	  < $(srcdir)/libgnuintl.h.in \
310	| if test 'no' = yes; then \
311	    sed -e 's/extern \([^()]*\);/extern __declspec (dllimport) \1;/'; \
312	  else \
313	    cat; \
314	  fi \
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''@,1,g' \
318	  > libgnuintl.h
319
320libintl.h: $(srcdir)/libgnuintl.h.in
321	sed -e '/IN_LIBGLOCALE/d' \
322	    -e 's,@''HAVE_POSIX_PRINTF''@,1,g' \
323	    -e 's,@''HAVE_ASPRINTF''@,1,g' \
324	    -e 's,@''HAVE_SNPRINTF''@,1,g' \
325	    -e 's,@''HAVE_WPRINTF''@,0,g' \
326	  < $(srcdir)/libgnuintl.h.in > libintl.h
327
328charset.alias: $(srcdir)/config.charset
329	$(SHELL) $(srcdir)/config.charset 'mipsel-uclibc-linux-gnu' > t-$@
330	mv t-$@ $@
331
332check: all
333
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
336# separate library.
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'.
339install: install-exec install-data
340install-exec: all
341	if { test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; } \
342	   && test 'yes' = 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 "no" = 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; \
351	    fi; \
352	  fi; \
353	else \
354	  : ; \
355	fi
356	if test "$(PACKAGE)" = "gettext-tools" \
357	   && test 'yes' = no \
358	   && test yes != 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; \
366	else \
367	  : ; \
368	fi
369	if test 'yes' = yes; then \
370	  test yes != 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; \
377	    rm -f $$temp; \
378	  else \
379	    if test yes = no; then \
380	      orig=charset.alias; \
381	      sed -f ref-add.sed $$orig > $$temp; \
382	      $(INSTALL_DATA) $$temp $$dest; \
383	      rm -f $$temp; \
384	    fi; \
385	  fi; \
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; \
394	  rm -f $$temp; \
395	else \
396	  : ; \
397	fi
398install-data: all
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; \
407	  done; \
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; \
414	  done; \
415	  dists="$(DISTFILES.obsolete)"; \
416	  for file in $$dists; do \
417	    rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
418	  done; \
419	else \
420	  : ; \
421	fi
422
423install-strip: install
424
425install-dvi install-html install-info install-ps install-pdf:
426
427installdirs:
428	if { test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; } \
429	   && test 'yes' = yes; then \
430	  $(mkdir_p) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir); \
431	else \
432	  : ; \
433	fi
434	if test "$(PACKAGE)" = "gettext-tools" \
435	   && test 'yes' = no \
436	   && test yes != no; then \
437	  $(mkdir_p) $(DESTDIR)$(libdir); \
438	else \
439	  : ; \
440	fi
441	if test 'yes' = yes; then \
442	  test yes != no || $(mkdir_p) $(DESTDIR)$(libdir); \
443	  $(mkdir_p) $(DESTDIR)$(localedir); \
444	else \
445	  : ; \
446	fi
447	if test "$(PACKAGE)" = "gettext-tools"; then \
448	  $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \
449	else \
450	  : ; \
451	fi
452
453# Define this as empty until I found a useful application.
454installcheck:
455
456uninstall:
457	if { test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; } \
458	   && test 'yes' = yes; then \
459	  rm -f $(DESTDIR)$(includedir)/libintl.h; \
460	  $(LIBTOOL) --mode=uninstall \
461	    rm -f $(DESTDIR)$(libdir)/libintl.$la; \
462	else \
463	  : ; \
464	fi
465	if test "$(PACKAGE)" = "gettext-tools" \
466	   && test 'yes' = no \
467	   && test yes != no; then \
468	  rm -f $(DESTDIR)$(libdir)/preloadable_libintl.so; \
469	else \
470	  : ; \
471	fi
472	if test 'yes' = 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 \
478	      rm -f $$dest; \
479	    else \
480	      $(INSTALL_DATA) $$temp $$dest; \
481	    fi; \
482	    rm -f $$temp; \
483	  fi; \
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 \
489	      rm -f $$dest; \
490	    else \
491	      $(INSTALL_DATA) $$temp $$dest; \
492	    fi; \
493	    rm -f $$temp; \
494	  fi; \
495	else \
496	  : ; \
497	fi
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; \
501	  done; \
502	else \
503	  : ; \
504	fi
505
506info dvi ps pdf html:
507
508$(OBJECTS): ../config.h libgnuintl.h
509bindtextdom.$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
510hash-string.$lo dcigettext.$lo loadmsgcat.$lo: $(srcdir)/hash-string.h
511explodename.$lo l10nflist.$lo: $(srcdir)/loadinfo.h
512dcigettext.$lo loadmsgcat.$lo plural.$lo plural-exp.$lo: $(srcdir)/plural-exp.h
513dcigettext.$lo: $(srcdir)/eval-plural.h
514localcharset.$lo: $(srcdir)/localcharset.h
515bindtextdom.$lo dcigettext.$lo finddomain.$lo loadmsgcat.$lo localealias.$lo lock.$lo log.$lo: $(srcdir)/lock.h
516localealias.$lo localcharset.$lo relocatable.$lo: $(srcdir)/relocatable.h
517printf.$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
518
519# A bison-2.1 generated plural.c includes <libintl.h> if ENABLE_NLS.
520PLURAL_DEPS_yes = libintl.h
521PLURAL_DEPS_no =
522plural.$lo: $(PLURAL_DEPS_yes)
523
524tags: TAGS
525
526TAGS: $(HEADERS) $(SOURCES)
527	here=`pwd`; cd $(srcdir) && etags -o $$here/TAGS $(HEADERS) $(SOURCES)
528
529ctags: CTAGS
530
531CTAGS: $(HEADERS) $(SOURCES)
532	here=`pwd`; cd $(srcdir) && ctags -o $$here/CTAGS $(HEADERS) $(SOURCES)
533
534id: ID
535
536ID: $(HEADERS) $(SOURCES)
537	here=`pwd`; cd $(srcdir) && mkid -f$$here/ID $(HEADERS) $(SOURCES)
538
539
540mostlyclean:
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
543	rm -f -r .libs _libs
544
545clean: mostlyclean
546
547distclean: clean
548	rm -f Makefile ID TAGS
549	if test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; then \
550	  rm -f ChangeLog.inst $(DISTFILES.normal); \
551	else \
552	  : ; \
553	fi
554
555maintainer-clean: distclean
556	@echo "This command is intended for maintainers to use;"
557	@echo "it deletes files that may require special tools to rebuild."
558
559
560# GNU gettext needs not contain the file `VERSION' but contains some
561# other files which should not be distributed in other packages.
562distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
563dist distdir: Makefile
564	if test "$(PACKAGE)" = "gettext-tools"; then \
565	  : ; \
566	else \
567	  if test "$(PACKAGE)" = "gettext-runtime"; then \
568	    additional="$(DISTFILES.gettext)"; \
569	  else \
570	    additional="$(DISTFILES.normal)"; \
571	  fi; \
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; \
576	  done; \
577	fi
578
579Makefile: $(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)/$@
584
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.
587.NOEXPORT:
588