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