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