]> git.saurik.com Git - bison.git/blame - intl/Makefile.in
Regen.
[bison.git] / intl / Makefile.in
CommitLineData
705db0b5 1# Makefile for directory with message catalog handling in GNU NLS Utilities.
1e24cc5b 2# Copyright (C) 1995-1998, 2000, 2001 Free Software Foundation, Inc.
705db0b5
AD
3#
4# This program is free software; you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by
6# 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
12# GNU General Public License for more details.
13#
14# You should have received a copy of the GNU General Public License
15# along with this program; if not, write to the Free Software
16# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17
18PACKAGE = @PACKAGE@
19VERSION = @VERSION@
20
21SHELL = /bin/sh
22
23srcdir = @srcdir@
24top_srcdir = @top_srcdir@
25top_builddir = ..
26VPATH = @srcdir@
27
28prefix = @prefix@
29exec_prefix = @exec_prefix@
30transform = @program_transform_name@
1e24cc5b
AD
31libdir = @libdir@
32includedir = @includedir@
33datadir = @datadir@
705db0b5 34localedir = $(datadir)/locale
1e24cc5b
AD
35gettextsrcdir = $(datadir)/gettext/intl
36aliaspath = $(localedir)
705db0b5
AD
37subdir = intl
38
39INSTALL = @INSTALL@
40INSTALL_DATA = @INSTALL_DATA@
41MKINSTALLDIRS = @MKINSTALLDIRS@
1e24cc5b 42mkinstalldirs = $(SHELL) `case "$(MKINSTALLDIRS)" in /*) echo "$(MKINSTALLDIRS)" ;; *) echo "$(top_builddir)/$(MKINSTALLDIRS)" ;; esac`
705db0b5 43
1e24cc5b 44l = @INTL_LIBTOOL_SUFFIX_PREFIX@
705db0b5
AD
45
46AR = ar
47CC = @CC@
48LIBTOOL = @LIBTOOL@
49RANLIB = @RANLIB@
1e24cc5b
AD
50YACC = @INTLBISON@ -y -d
51YFLAGS = --name-prefix=__gettext
705db0b5 52
1e24cc5b
AD
53DEFS = -DLOCALEDIR=\"$(localedir)\" -DLOCALE_ALIAS_PATH=\"$(aliaspath)\" \
54-DLIBDIR=\"$(libdir)\" @DEFS@
705db0b5
AD
55CPPFLAGS = @CPPFLAGS@
56CFLAGS = @CFLAGS@
57LDFLAGS = @LDFLAGS@
58
59COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS)
60
1e24cc5b 61HEADERS = $(COMHDRS) libgnuintl.h libgettext.h loadinfo.h
705db0b5 62COMHDRS = gettext.h gettextP.h hash-string.h
1e24cc5b 63SOURCES = $(COMSRCS) intl-compat.c
705db0b5
AD
64COMSRCS = bindtextdom.c dcgettext.c dgettext.c gettext.c \
65finddomain.c loadmsgcat.c localealias.c textdomain.c l10nflist.c \
1e24cc5b
AD
66explodename.c dcigettext.c dcngettext.c dngettext.c ngettext.c plural.y \
67localcharset.c
705db0b5
AD
68OBJECTS = @INTLOBJS@ bindtextdom.$lo dcgettext.$lo dgettext.$lo gettext.$lo \
69finddomain.$lo loadmsgcat.$lo localealias.$lo textdomain.$lo l10nflist.$lo \
1e24cc5b
AD
70explodename.$lo dcigettext.$lo dcngettext.$lo dngettext.$lo ngettext.$lo \
71plural.$lo localcharset.$lo
705db0b5 72GETTOBJS = intl-compat.$lo
1e24cc5b
AD
73DISTFILES.common = Makefile.in \
74config.charset locale.alias ref-add.sin ref-del.sin $(HEADERS) $(SOURCES)
75DISTFILES.generated = plural.c
705db0b5 76DISTFILES.normal = VERSION
1e24cc5b
AD
77DISTFILES.gettext = libintl.glibc
78DISTFILES.obsolete = xopen-msg.sed linux-msg.sed po2tbl.sed.in cat-compat.c
79
80# Libtool's library version information for libintl.
81# Before making a gettext release, the gettext maintainer must change this
82# according to the libtool documentation, section "Library interface versions".
83# Maintainers of other packages that include the intl directory must *not*
84# change these values.
85LTV_CURRENT=1
86LTV_REVISION=1
87LTV_AGE=0
705db0b5
AD
88
89.SUFFIXES:
1e24cc5b 90.SUFFIXES: .c .y .o .lo .sin .sed
705db0b5
AD
91.c.o:
92 $(COMPILE) $<
93.c.lo:
94 $(LIBTOOL) --mode=compile $(COMPILE) $<
95
1e24cc5b
AD
96.y.c:
97 $(YACC) $(YFLAGS) --output $@ $<
98 rm -f $*.h
705db0b5 99
1e24cc5b
AD
100.sin.sed:
101 sed -e '/^#/d' -e 's/@''PACKAGE''@/@PACKAGE@/g' $< > t-$@
102 mv t-$@ $@
103
104INCLUDES = -I.. -I. -I$(top_srcdir)/intl
705db0b5 105
1e24cc5b
AD
106all: all-@USE_INCLUDED_LIBINTL@
107all-yes: libintl.$la libintl.h charset.alias ref-add.sed ref-del.sed
108all-no: all-no-@BUILD_INCLUDED_LIBINTL@
109all-no-yes: libgnuintl.$la
110all-no-no:
705db0b5 111
1e24cc5b 112libintl.a libgnuintl.a: $(OBJECTS)
705db0b5
AD
113 rm -f $@
114 $(AR) cru $@ $(OBJECTS)
115 $(RANLIB) $@
116
1e24cc5b
AD
117libintl.la libgnuintl.la: $(OBJECTS)
118 $(LIBTOOL) --mode=link \
119 $(CC) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS) $(LDFLAGS) -o $@ \
120 $(OBJECTS) @LIBICONV@ \
121 -version-info $(LTV_CURRENT):$(LTV_REVISION):$(LTV_AGE) \
122 -rpath $(libdir) \
123 -no-undefined
124
125libintl.h: libgnuintl.h
126 cp $(srcdir)/libgnuintl.h libintl.h
705db0b5 127
1e24cc5b
AD
128charset.alias: config.charset
129 $(SHELL) $(srcdir)/config.charset '@host@' > t-$@
130 mv t-$@ $@
705db0b5
AD
131
132check: all
133
134# This installation goal is only used in GNU gettext. Packages which
135# only use the library should use install instead.
136
137# We must not install the libintl.h/libintl.a files if we are on a
1e24cc5b
AD
138# system which has the GNU gettext() function in its C library or in a
139# separate library.
705db0b5
AD
140# If you want to use the one which comes with this version of the
141# package, you have to use `configure --with-included-gettext'.
142install: install-exec install-data
143install-exec: all
144 if test "$(PACKAGE)" = "gettext" \
145 && test '@INTLOBJS@' = '$(GETTOBJS)'; then \
1e24cc5b
AD
146 $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir); \
147 $(INSTALL_DATA) libintl.h $(DESTDIR)$(includedir)/libintl.h; \
148 $(LIBTOOL) --mode=install \
149 $(INSTALL_DATA) libintl.$la $(DESTDIR)$(libdir)/libintl.$la; \
150 else \
151 : ; \
152 fi
153 if test '@USE_INCLUDED_LIBINTL@' = yes; then \
154 $(mkinstalldirs) $(DESTDIR)$(libdir); \
155 temp=$(DESTDIR)$(libdir)/t-charset.alias; \
156 dest=$(DESTDIR)$(libdir)/charset.alias; \
157 if test -f $(DESTDIR)$(libdir)/charset.alias; then \
158 orig=$(DESTDIR)$(libdir)/charset.alias; \
159 sed -f ref-add.sed $$orig > $$temp; \
160 $(INSTALL_DATA) $$temp $$dest; \
161 rm -f $$temp; \
705db0b5 162 else \
1e24cc5b
AD
163 if test @GLIBC21@ = no; then \
164 orig=charset.alias; \
165 sed -f ref-add.sed $$orig > $$temp; \
166 $(INSTALL_DATA) $$temp $$dest; \
167 rm -f $$temp; \
168 fi; \
705db0b5 169 fi; \
1e24cc5b
AD
170 $(mkinstalldirs) $(DESTDIR)$(localedir); \
171 test -f $(DESTDIR)$(localedir)/locale.alias \
172 && orig=$(DESTDIR)$(localedir)/locale.alias \
173 || orig=$(srcdir)/locale.alias; \
174 temp=$(DESTDIR)$(localedir)/t-locale.alias; \
175 dest=$(DESTDIR)$(localedir)/locale.alias; \
176 sed -f ref-add.sed $$orig > $$temp; \
177 $(INSTALL_DATA) $$temp $$dest; \
178 rm -f $$temp; \
705db0b5
AD
179 else \
180 : ; \
181 fi
182install-data: all
183 if test "$(PACKAGE)" = "gettext"; then \
1e24cc5b
AD
184 $(mkinstalldirs) $(DESTDIR)$(gettextsrcdir); \
185 $(INSTALL_DATA) VERSION $(DESTDIR)$(gettextsrcdir)/VERSION; \
186 $(INSTALL_DATA) ChangeLog.inst $(DESTDIR)$(gettextsrcdir)/ChangeLog; \
705db0b5
AD
187 dists="$(DISTFILES.common)"; \
188 for file in $$dists; do \
1e24cc5b
AD
189 $(INSTALL_DATA) $(srcdir)/$$file \
190 $(DESTDIR)$(gettextsrcdir)/$$file; \
191 done; \
192 chmod a+x $(DESTDIR)$(gettextsrcdir)/config.charset; \
193 dists="$(DISTFILES.generated)"; \
194 for file in $$dists; do \
195 if test -f $$file; then dir=.; else dir=$(srcdir); fi; \
196 $(INSTALL_DATA) $$dir/$$file \
197 $(DESTDIR)$(gettextsrcdir)/$$file; \
198 done; \
199 dists="$(DISTFILES.obsolete)"; \
200 for file in $$dists; do \
201 rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
705db0b5
AD
202 done; \
203 else \
204 : ; \
205 fi
206
207# Define this as empty until I found a useful application.
208installcheck:
209
210uninstall:
1e24cc5b
AD
211 if test "$(PACKAGE)" = "gettext" \
212 && test '@INTLOBJS@' = '$(GETTOBJS)'; then \
213 rm -f $(DESTDIR)$(includedir)/libintl.h; \
214 $(LIBTOOL) --mode=uninstall \
215 rm -f $(DESTDIR)$(libdir)/libintl.$la; \
216 else \
217 : ; \
218 fi
219 if test '@USE_INCLUDED_LIBINTL@' = yes; then \
220 if test -f $(DESTDIR)$(libdir)/charset.alias; then \
221 temp=$(DESTDIR)$(libdir)/t-charset.alias; \
222 dest=$(DESTDIR)$(libdir)/charset.alias; \
223 sed -f ref-del.sed $$dest > $$temp; \
224 if grep '^# Packages using this file: $$' $$temp > /dev/null; then \
225 rm -f $$dest; \
226 else \
227 $(INSTALL_DATA) $$temp $$dest; \
228 fi; \
229 rm -f $$temp; \
230 fi; \
231 if test -f $(DESTDIR)$(localedir)/locale.alias; then \
232 temp=$(DESTDIR)$(localedir)/t-locale.alias; \
233 dest=$(DESTDIR)$(localedir)/locale.alias; \
234 sed -f ref-del.sed $$dest > $$temp; \
235 if grep '^# Packages using this file: $$' $$temp > /dev/null; then \
236 rm -f $$dest; \
237 else \
238 $(INSTALL_DATA) $$temp $$dest; \
239 fi; \
240 rm -f $$temp; \
241 fi; \
242 else \
243 : ; \
244 fi
705db0b5 245 if test "$(PACKAGE)" = "gettext"; then \
1e24cc5b
AD
246 for file in VERSION ChangeLog $(DISTFILES.common) $(DISTFILES.generated); do \
247 rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
705db0b5
AD
248 done; \
249 else \
250 : ; \
251 fi
252
253info dvi:
254
1e24cc5b 255$(OBJECTS): ../config.h libgnuintl.h
705db0b5
AD
256bindtextdom.$lo finddomain.$lo loadmsgcat.$lo: gettextP.h gettext.h loadinfo.h
257dcgettext.$lo: gettextP.h gettext.h hash-string.h loadinfo.h
258
259tags: TAGS
260
261TAGS: $(HEADERS) $(SOURCES)
262 here=`pwd`; cd $(srcdir) && etags -o $$here/TAGS $(HEADERS) $(SOURCES)
263
264id: ID
265
266ID: $(HEADERS) $(SOURCES)
267 here=`pwd`; cd $(srcdir) && mkid -f$$here/ID $(HEADERS) $(SOURCES)
268
269
270mostlyclean:
1e24cc5b
AD
271 rm -f *.a *.la *.o *.lo core core.*
272 rm -f libintl.h charset.alias ref-add.sed ref-del.sed
273 rm -f -r .libs _libs
705db0b5
AD
274
275clean: mostlyclean
276
277distclean: clean
1e24cc5b
AD
278 rm -f Makefile ID TAGS
279 if test "$(PACKAGE)" = gettext; then \
280 rm -f ChangeLog.inst $(DISTFILES.normal); \
281 else \
282 : ; \
283 fi
705db0b5
AD
284
285maintainer-clean: distclean
286 @echo "This command is intended for maintainers to use;"
287 @echo "it deletes files that may require special tools to rebuild."
288
289
290# GNU gettext needs not contain the file `VERSION' but contains some
291# other files which should not be distributed in other packages.
292distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
1e24cc5b 293dist distdir: Makefile
705db0b5
AD
294 if test "$(PACKAGE)" = gettext; then \
295 additional="$(DISTFILES.gettext)"; \
296 else \
297 additional="$(DISTFILES.normal)"; \
298 fi; \
1e24cc5b
AD
299 $(MAKE) $(DISTFILES.common) $(DISTFILES.generated) $$additional; \
300 for file in ChangeLog $(DISTFILES.common) $(DISTFILES.generated) $$additional; do \
301 if test -f $$file; then dir=.; else dir=$(srcdir); fi; \
302 ln $$dir/$$file $(distdir) 2> /dev/null \
303 || cp -p $$dir/$$file $(distdir); \
705db0b5
AD
304 done
305
705db0b5
AD
306Makefile: Makefile.in ../config.status
307 cd .. \
308 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
309
705db0b5
AD
310# Tell versions [3.59,3.63) of GNU make not to export all variables.
311# Otherwise a system limit (for SysV at least) may be exceeded.
312.NOEXPORT: