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