1 |
# Makefile for directory with message catalog handling in GNU NLS Utilities. |
# Makefile for directory with message catalog handling in GNU NLS Utilities. |
2 |
# Copyright (C) 1995-1998, 2000, 2001 Free Software Foundation, Inc. |
# Copyright (C) 1995-1998, 2000-2002 Free Software Foundation, Inc. |
3 |
# |
# |
4 |
# This program is free software; you can redistribute it and/or modify it |
# 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 |
# under the terms of the GNU Library General Public License as published |
52 |
YFLAGS = --name-prefix=__gettext |
YFLAGS = --name-prefix=__gettext |
53 |
|
|
54 |
DEFS = -DLOCALEDIR=\"$(localedir)\" -DLOCALE_ALIAS_PATH=\"$(aliaspath)\" \ |
DEFS = -DLOCALEDIR=\"$(localedir)\" -DLOCALE_ALIAS_PATH=\"$(aliaspath)\" \ |
55 |
-DLIBDIR=\"$(libdir)\" @DEFS@ |
-DLIBDIR=\"$(libdir)\" -DIN_LIBINTL @DEFS@ |
56 |
CPPFLAGS = @CPPFLAGS@ |
CPPFLAGS = @CPPFLAGS@ |
57 |
CFLAGS = @CFLAGS@ |
CFLAGS = @CFLAGS@ |
58 |
LDFLAGS = @LDFLAGS@ |
LDFLAGS = @LDFLAGS@ |
59 |
|
|
60 |
COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS) |
COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS) |
61 |
|
|
62 |
HEADERS = $(COMHDRS) libgnuintl.h libgettext.h loadinfo.h |
HEADERS = $(COMHDRS) libgnuintl.h loadinfo.h |
63 |
COMHDRS = gettext.h gettextP.h hash-string.h |
COMHDRS = gmo.h gettextP.h hash-string.h plural-exp.h eval-plural.h os2compat.h |
64 |
SOURCES = $(COMSRCS) intl-compat.c |
SOURCES = $(COMSRCS) intl-compat.c |
65 |
COMSRCS = bindtextdom.c dcgettext.c dgettext.c gettext.c \ |
COMSRCS = bindtextdom.c dcgettext.c dgettext.c gettext.c \ |
66 |
finddomain.c loadmsgcat.c localealias.c textdomain.c l10nflist.c \ |
finddomain.c loadmsgcat.c localealias.c textdomain.c l10nflist.c \ |
67 |
explodename.c dcigettext.c dcngettext.c dngettext.c ngettext.c plural.y \ |
explodename.c dcigettext.c dcngettext.c dngettext.c ngettext.c plural.y \ |
68 |
localcharset.c |
plural-exp.c localcharset.c localename.c osdep.c os2compat.c |
69 |
OBJECTS = @INTLOBJS@ bindtextdom.$lo dcgettext.$lo dgettext.$lo gettext.$lo \ |
OBJECTS = @INTLOBJS@ bindtextdom.$lo dcgettext.$lo dgettext.$lo gettext.$lo \ |
70 |
finddomain.$lo loadmsgcat.$lo localealias.$lo textdomain.$lo l10nflist.$lo \ |
finddomain.$lo loadmsgcat.$lo localealias.$lo textdomain.$lo l10nflist.$lo \ |
71 |
explodename.$lo dcigettext.$lo dcngettext.$lo dngettext.$lo ngettext.$lo \ |
explodename.$lo dcigettext.$lo dcngettext.$lo dngettext.$lo ngettext.$lo \ |
72 |
plural.$lo localcharset.$lo |
plural.$lo plural-exp.$lo localcharset.$lo localename.$lo osdep.$lo |
73 |
GETTOBJS = intl-compat.$lo |
GETTOBJS = intl-compat.$lo |
74 |
DISTFILES.common = Makefile.in \ |
DISTFILES.common = Makefile.in \ |
75 |
config.charset locale.alias ref-add.sin ref-del.sin $(HEADERS) $(SOURCES) |
config.charset locale.alias ref-add.sin ref-del.sin $(HEADERS) $(SOURCES) |
76 |
DISTFILES.generated = plural.c |
DISTFILES.generated = plural.c |
77 |
DISTFILES.normal = VERSION |
DISTFILES.normal = VERSION |
78 |
DISTFILES.gettext = COPYING.LIB-2 COPYING.LIB-2.1 libintl.glibc |
DISTFILES.gettext = COPYING.LIB-2.0 COPYING.LIB-2.1 libintl.glibc |
79 |
DISTFILES.obsolete = xopen-msg.sed linux-msg.sed po2tbl.sed.in cat-compat.c |
DISTFILES.obsolete = xopen-msg.sed linux-msg.sed po2tbl.sed.in cat-compat.c \ |
80 |
|
COPYING.LIB-2 gettext.h libgettext.h plural-eval.c |
81 |
|
|
82 |
# Libtool's library version information for libintl. |
# Libtool's library version information for libintl. |
83 |
# Before making a gettext release, the gettext maintainer must change this |
# Before making a gettext release, the gettext maintainer must change this |
84 |
# according to the libtool documentation, section "Library interface versions". |
# according to the libtool documentation, section "Library interface versions". |
85 |
# Maintainers of other packages that include the intl directory must *not* |
# Maintainers of other packages that include the intl directory must *not* |
86 |
# change these values. |
# change these values. |
87 |
LTV_CURRENT=1 |
LTV_CURRENT=2 |
88 |
LTV_REVISION=1 |
LTV_REVISION=0 |
89 |
LTV_AGE=0 |
LTV_AGE=0 |
90 |
|
|
91 |
.SUFFIXES: |
.SUFFIXES: |
119 |
libintl.la libgnuintl.la: $(OBJECTS) |
libintl.la libgnuintl.la: $(OBJECTS) |
120 |
$(LIBTOOL) --mode=link \ |
$(LIBTOOL) --mode=link \ |
121 |
$(CC) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS) $(LDFLAGS) -o $@ \ |
$(CC) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS) $(LDFLAGS) -o $@ \ |
122 |
$(OBJECTS) @LIBICONV@ \ |
$(OBJECTS) @LTLIBICONV@ -lc \ |
123 |
-version-info $(LTV_CURRENT):$(LTV_REVISION):$(LTV_AGE) \ |
-version-info $(LTV_CURRENT):$(LTV_REVISION):$(LTV_AGE) \ |
124 |
-rpath $(libdir) \ |
-rpath $(libdir) \ |
125 |
-no-undefined |
-no-undefined |
153 |
: ; \ |
: ; \ |
154 |
fi |
fi |
155 |
if test '@USE_INCLUDED_LIBINTL@' = yes; then \ |
if test '@USE_INCLUDED_LIBINTL@' = yes; then \ |
156 |
$(mkinstalldirs) $(DESTDIR)$(libdir); \ |
test @GLIBC21@ != no || $(mkinstalldirs) $(DESTDIR)$(libdir); \ |
157 |
temp=$(DESTDIR)$(libdir)/t-charset.alias; \ |
temp=$(DESTDIR)$(libdir)/t-charset.alias; \ |
158 |
dest=$(DESTDIR)$(libdir)/charset.alias; \ |
dest=$(DESTDIR)$(libdir)/charset.alias; \ |
159 |
if test -f $(DESTDIR)$(libdir)/charset.alias; then \ |
if test -f $(DESTDIR)$(libdir)/charset.alias; then \ |
186 |
$(mkinstalldirs) $(DESTDIR)$(gettextsrcdir); \ |
$(mkinstalldirs) $(DESTDIR)$(gettextsrcdir); \ |
187 |
$(INSTALL_DATA) VERSION $(DESTDIR)$(gettextsrcdir)/VERSION; \ |
$(INSTALL_DATA) VERSION $(DESTDIR)$(gettextsrcdir)/VERSION; \ |
188 |
$(INSTALL_DATA) ChangeLog.inst $(DESTDIR)$(gettextsrcdir)/ChangeLog; \ |
$(INSTALL_DATA) ChangeLog.inst $(DESTDIR)$(gettextsrcdir)/ChangeLog; \ |
189 |
dists="COPYING.LIB-2 COPYING.LIB-2.1 $(DISTFILES.common)"; \ |
dists="COPYING.LIB-2.0 COPYING.LIB-2.1 $(DISTFILES.common)"; \ |
190 |
for file in $$dists; do \ |
for file in $$dists; do \ |
191 |
$(INSTALL_DATA) $(srcdir)/$$file \ |
$(INSTALL_DATA) $(srcdir)/$$file \ |
192 |
$(DESTDIR)$(gettextsrcdir)/$$file; \ |
$(DESTDIR)$(gettextsrcdir)/$$file; \ |
206 |
: ; \ |
: ; \ |
207 |
fi |
fi |
208 |
|
|
209 |
|
install-strip: install |
210 |
|
|
211 |
|
installdirs: |
212 |
|
if test "$(PACKAGE)" = "gettext" \ |
213 |
|
&& test '@INTLOBJS@' = '$(GETTOBJS)'; then \ |
214 |
|
$(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir); \ |
215 |
|
else \ |
216 |
|
: ; \ |
217 |
|
fi |
218 |
|
if test '@USE_INCLUDED_LIBINTL@' = yes; then \ |
219 |
|
test @GLIBC21@ != no || $(mkinstalldirs) $(DESTDIR)$(libdir); \ |
220 |
|
$(mkinstalldirs) $(DESTDIR)$(localedir); \ |
221 |
|
else \ |
222 |
|
: ; \ |
223 |
|
fi |
224 |
|
if test "$(PACKAGE)" = "gettext"; then \ |
225 |
|
$(mkinstalldirs) $(DESTDIR)$(gettextsrcdir); \ |
226 |
|
else \ |
227 |
|
: ; \ |
228 |
|
fi |
229 |
|
|
230 |
# Define this as empty until I found a useful application. |
# Define this as empty until I found a useful application. |
231 |
installcheck: |
installcheck: |
232 |
|
|
266 |
: ; \ |
: ; \ |
267 |
fi |
fi |
268 |
if test "$(PACKAGE)" = "gettext"; then \ |
if test "$(PACKAGE)" = "gettext"; then \ |
269 |
for file in VERSION ChangeLog COPYING.LIB-2 COPYING.LIB-2.1 $(DISTFILES.common) $(DISTFILES.generated); do \ |
for file in VERSION ChangeLog COPYING.LIB-2.0 COPYING.LIB-2.1 $(DISTFILES.common) $(DISTFILES.generated); do \ |
270 |
rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ |
rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ |
271 |
done; \ |
done; \ |
272 |
else \ |
else \ |
276 |
info dvi: |
info dvi: |
277 |
|
|
278 |
$(OBJECTS): ../config.h libgnuintl.h |
$(OBJECTS): ../config.h libgnuintl.h |
279 |
bindtextdom.$lo finddomain.$lo loadmsgcat.$lo: gettextP.h gettext.h loadinfo.h |
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: gettextP.h gmo.h loadinfo.h |
280 |
dcgettext.$lo: gettextP.h gettext.h hash-string.h loadinfo.h |
dcigettext.$lo: hash-string.h |
281 |
|
explodename.$lo l10nflist.$lo: loadinfo.h |
282 |
|
dcigettext.$lo loadmsgcat.$lo plural.$lo plural-exp.$lo: plural-exp.h |
283 |
|
dcigettext.$lo: eval-plural.h |
284 |
|
|
285 |
tags: TAGS |
tags: TAGS |
286 |
|
|
325 |
$(MAKE) $(DISTFILES.common) $(DISTFILES.generated) $$additional; \ |
$(MAKE) $(DISTFILES.common) $(DISTFILES.generated) $$additional; \ |
326 |
for file in ChangeLog $(DISTFILES.common) $(DISTFILES.generated) $$additional; do \ |
for file in ChangeLog $(DISTFILES.common) $(DISTFILES.generated) $$additional; do \ |
327 |
if test -f $$file; then dir=.; else dir=$(srcdir); fi; \ |
if test -f $$file; then dir=.; else dir=$(srcdir); fi; \ |
328 |
ln $$dir/$$file $(distdir) 2> /dev/null \ |
cp -p $$dir/$$file $(distdir); \ |
|
|| cp -p $$dir/$$file $(distdir); \ |
|
329 |
done |
done |
330 |
|
|
331 |
Makefile: Makefile.in ../config.status |
Makefile: Makefile.in ../config.status |