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