1 # Makefile for directory with message catalog handling library of GNU gettext
2 # Copyright (C) 1995-1998, 2000-2007, 2009-2010 Free Software Foundation, Inc.
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)
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.
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
25 top_srcdir
= @top_srcdir@
28 # The VPATH variables allows builds with $builddir != $srcdir, assuming a
29 # 'make' program that supports VPATH (such as GNU make). This line is removed
30 # by autoconf automatically when "$(srcdir)" = ".".
31 # In this directory, the VPATH handling is particular:
32 # 1. If INTL_LIBTOOL_SUFFIX_PREFIX is 'l' (indicating a build with libtool),
33 # the .c -> .lo rules carefully use $(srcdir), so that VPATH can be omitted.
34 # 2. If PACKAGE = gettext-tools, VPATH _must_ be omitted, because otherwise
35 # 'make' does the wrong thing if GNU gettext was configured with
36 # "./configure --srcdir=`pwd`", namely it gets confused by the .lo and .la
37 # files it finds in srcdir = ../../gettext-runtime/intl.
41 exec_prefix = @
exec_prefix@
42 transform
= @program_transform_name@
44 includedir = @
includedir@
45 datarootdir
= @datarootdir@
47 localedir
= $(datadir)/locale
48 gettextsrcdir
= $(datadir)/gettext
/intl
49 aliaspath
= $(localedir
)
53 INSTALL_DATA
= @INSTALL_DATA@
56 # In automake <= 1.9.x, $(mkdir_p) is defined either as "mkdir -p --" or as
57 # "$(mkinstalldirs)" or as "$(install_sh) -d". For these automake versions,
58 # @install_sh@ does not start with $(SHELL), so we add it.
59 # In automake >= 1.10, @mkdir_p@ is derived from ${MKDIR_P}, which is defined
60 # either as "/path/to/mkdir -p" or ".../install-sh -c -d". For these automake
61 # versions, $(mkinstalldirs) and $(install_sh) are unused.
62 mkinstalldirs
= $(SHELL
) @install_sh@
-d
63 install_sh
= $(SHELL
) @install_sh@
67 l
= @INTL_LIBTOOL_SUFFIX_PREFIX@
73 YACC
= @INTLBISON@
-y
-d
74 YFLAGS
= --name-prefix
=__gettext
75 # Windows resource compiler (windres). Used when libtool is not used.
77 # Windows resource compiler (windres). Used via libtool.
80 # Support for silent-rules.
81 AM_V_at
= $(am__v_at_
$(V
))
82 am__v_at_
= $(am__v_at_@INTL_DEFAULT_VERBOSITY@
)
84 AM_V_AR
= $(am__v_AR_
$(V
))
85 am__v_AR_
= $(am__v_AR_@INTL_DEFAULT_VERBOSITY@
)
86 am__v_AR_0
= @echo
" AR " $@
;
87 AM_V_CC
= $(am__v_CC_
$(V
))
88 am__v_CC_
= $(am__v_CC_@INTL_DEFAULT_VERBOSITY@
)
89 am__v_CC_0
= @echo
" CC " $@
;
90 AM_V_GEN
= $(am__v_GEN_
$(V
))
91 am__v_GEN_
= $(am__v_GEN_@INTL_DEFAULT_VERBOSITY@
)
92 am__v_GEN_0
= @echo
" GEN " $@
;
93 AM_V_YACC
= $(am__v_YACC_
$(V
))
94 am__v_YACC_
= $(am__v_YACC_@INTL_DEFAULT_VERBOSITY@
)
95 am__v_YACC_0
= @echo
" YACC " $@
;
96 AM_V_lt
= $(am__v_lt_
$(V
))
97 am__v_lt_
= $(am__v_lt_@INTL_DEFAULT_VERBOSITY@
)
100 # -DBUILDING_LIBINTL: Change expansion of LIBINTL_DLL_EXPORTED macro.
101 # -DBUILDING_DLL: Change expansion of RELOCATABLE_DLL_EXPORTED macro.
102 DEFS
= -DLOCALEDIR
=\"$(localedir
)\" -DLOCALE_ALIAS_PATH
=\"$(aliaspath
)\" \
103 -DLIBDIR
=\"$(libdir)\" -DBUILDING_LIBINTL
-DBUILDING_DLL
-DIN_LIBINTL \
104 -DENABLE_RELOCATABLE
=1 -DIN_LIBRARY
-DINSTALLDIR
=\"$(libdir)\" -DNO_XMALLOC \
105 -Dset_relocation_prefix
=libintl_set_relocation_prefix \
106 -Drelocate
=libintl_relocate \
107 -DDEPENDS_ON_LIBICONV
=1 @DEFS@
108 CPPFLAGS
= @CPPFLAGS@
109 CFLAGS
= @CFLAGS@ @CFLAG_VISIBILITY@
110 LDFLAGS
= @LDFLAGS@
$(LDFLAGS_@WOE32DLL@
)
111 LDFLAGS_yes
= -Wl
,--export-all-symbols
115 COMPILE
= $(CC
) -c
$(DEFS
) $(INCLUDES
) $(CPPFLAGS
) $(CFLAGS
) $(XCFLAGS
)
127 tsearch.h tsearch.c \
129 printf-args.h printf-args.c \
130 printf-parse.h wprintf-parse.h printf-parse.c \
131 vasnprintf.h vasnwprintf.h vasnprintf.c \
196 OBJECTS_RES_yes
= libintl.res.
$lo
198 DISTFILES.common
= Makefile.in \
199 config.charset locale.alias ref-add.sin ref-del.sin
export.h libintl.rc \
200 $(HEADERS
) $(SOURCES
)
201 DISTFILES.generated
= plural.c
202 DISTFILES.normal
= VERSION
203 DISTFILES.gettext
= COPYING.LIB-2.0 COPYING.LIB-2.1 libintl.glibc README.woe32
204 DISTFILES.obsolete
= xopen-msg.sed linux-msg.sed po2tbl.sed.in cat-compat.c \
205 COPYING.LIB-2 gettext.h libgettext.h plural-eval.c libgnuintl.h \
206 libgnuintl.h_vms Makefile.vms libgnuintl.h.msvc-static \
207 libgnuintl.h.msvc-shared Makefile.msvc
209 all: all-@USE_INCLUDED_LIBINTL@
210 all-yes
: libintl.
$la libintl.h charset.alias ref-add.sed ref-del.sed
211 all-no
: all-no-@BUILD_INCLUDED_LIBINTL@
212 all-no-yes
: libgnuintl.
$la
215 libintl.a libgnuintl.a
: $(OBJECTS
)
217 $(AM_V_AR
)$(AR
) cru
$@
$(OBJECTS
)
218 $(AM_V_at
)$(RANLIB
) $@
220 libintl.la libgnuintl.la
: $(OBJECTS
) $(OBJECTS_RES_@WOE32@
)
221 $(AM_V_GEN
)$(LIBTOOL
) $(AM_V_lt
) --tag
=CC
--mode
=link \
222 $(CC
) $(CPPFLAGS
) $(CFLAGS
) $(XCFLAGS
) $(LDFLAGS
) -o
$@ \
223 $(OBJECTS
) @LTLIBICONV@ @INTL_MACOSX_LIBS@
$(LIBS
) @LTLIBTHREAD@ @LTLIBC@ \
224 $(OBJECTS_RES_@WOE32@
) \
225 -version-info
$(LTV_CURRENT
):$(LTV_REVISION
):$(LTV_AGE
) \
229 # Libtool's library version information for libintl.
230 # Before making a gettext release, the gettext maintainer must change this
231 # according to the libtool documentation, section "Library interface versions".
232 # Maintainers of other packages that include the intl directory must *not*
233 # change these values.
239 .SUFFIXES
: .c .y .o .lo .sin .sed
242 $(AM_V_CC
)$(COMPILE
) $<
245 $(AM_V_YACC
)$(YACC
) $(YFLAGS
) --output
$@
$<
248 bindtextdom.lo
: $(srcdir)/bindtextdom.c
249 $(AM_V_CC
)$(LIBTOOL
) $(AM_V_lt
) --tag
=CC
--mode
=compile
$(COMPILE
) $(srcdir)/bindtextdom.c
250 dcgettext.lo
: $(srcdir)/dcgettext.c
251 $(AM_V_CC
)$(LIBTOOL
) $(AM_V_lt
) --tag
=CC
--mode
=compile
$(COMPILE
) $(srcdir)/dcgettext.c
252 dgettext.lo
: $(srcdir)/dgettext.c
253 $(AM_V_CC
)$(LIBTOOL
) $(AM_V_lt
) --tag
=CC
--mode
=compile
$(COMPILE
) $(srcdir)/dgettext.c
254 gettext.lo
: $(srcdir)/gettext.c
255 $(AM_V_CC
)$(LIBTOOL
) $(AM_V_lt
) --tag
=CC
--mode
=compile
$(COMPILE
) $(srcdir)/gettext.c
256 finddomain.lo
: $(srcdir)/finddomain.c
257 $(AM_V_CC
)$(LIBTOOL
) $(AM_V_lt
) --tag
=CC
--mode
=compile
$(COMPILE
) $(srcdir)/finddomain.c
258 hash-string.lo
: $(srcdir)/hash-string.c
259 $(AM_V_CC
)$(LIBTOOL
) $(AM_V_lt
) --tag
=CC
--mode
=compile
$(COMPILE
) $(srcdir)/hash-string.c
260 loadmsgcat.lo
: $(srcdir)/loadmsgcat.c
261 $(AM_V_CC
)$(LIBTOOL
) $(AM_V_lt
) --tag
=CC
--mode
=compile
$(COMPILE
) $(srcdir)/loadmsgcat.c
262 localealias.lo
: $(srcdir)/localealias.c
263 $(AM_V_CC
)$(LIBTOOL
) $(AM_V_lt
) --tag
=CC
--mode
=compile
$(COMPILE
) $(srcdir)/localealias.c
264 textdomain.lo
: $(srcdir)/textdomain.c
265 $(AM_V_CC
)$(LIBTOOL
) $(AM_V_lt
) --tag
=CC
--mode
=compile
$(COMPILE
) $(srcdir)/textdomain.c
266 l10nflist.lo
: $(srcdir)/l10nflist.c
267 $(AM_V_CC
)$(LIBTOOL
) $(AM_V_lt
) --tag
=CC
--mode
=compile
$(COMPILE
) $(srcdir)/l10nflist.c
268 explodename.lo
: $(srcdir)/explodename.c
269 $(AM_V_CC
)$(LIBTOOL
) $(AM_V_lt
) --tag
=CC
--mode
=compile
$(COMPILE
) $(srcdir)/explodename.c
270 dcigettext.lo
: $(srcdir)/dcigettext.c
271 $(AM_V_CC
)$(LIBTOOL
) $(AM_V_lt
) --tag
=CC
--mode
=compile
$(COMPILE
) $(srcdir)/dcigettext.c
272 dcngettext.lo
: $(srcdir)/dcngettext.c
273 $(AM_V_CC
)$(LIBTOOL
) $(AM_V_lt
) --tag
=CC
--mode
=compile
$(COMPILE
) $(srcdir)/dcngettext.c
274 dngettext.lo
: $(srcdir)/dngettext.c
275 $(AM_V_CC
)$(LIBTOOL
) $(AM_V_lt
) --tag
=CC
--mode
=compile
$(COMPILE
) $(srcdir)/dngettext.c
276 ngettext.lo
: $(srcdir)/ngettext.c
277 $(AM_V_CC
)$(LIBTOOL
) $(AM_V_lt
) --tag
=CC
--mode
=compile
$(COMPILE
) $(srcdir)/ngettext.c
278 plural.lo
: $(srcdir)/plural.c
279 $(AM_V_CC
)$(LIBTOOL
) $(AM_V_lt
) --tag
=CC
--mode
=compile
$(COMPILE
) $(srcdir)/plural.c
280 plural-exp.lo
: $(srcdir)/plural-exp.c
281 $(AM_V_CC
)$(LIBTOOL
) $(AM_V_lt
) --tag
=CC
--mode
=compile
$(COMPILE
) $(srcdir)/plural-exp.c
282 localcharset.lo
: $(srcdir)/localcharset.c
283 $(AM_V_CC
)$(LIBTOOL
) $(AM_V_lt
) --tag
=CC
--mode
=compile
$(COMPILE
) $(srcdir)/localcharset.c
284 threadlib.lo
: $(srcdir)/threadlib.c
285 $(AM_V_CC
)$(LIBTOOL
) $(AM_V_lt
) --tag
=CC
--mode
=compile
$(COMPILE
) $(srcdir)/threadlib.c
286 lock.lo
: $(srcdir)/lock.c
287 $(AM_V_CC
)$(LIBTOOL
) $(AM_V_lt
) --tag
=CC
--mode
=compile
$(COMPILE
) $(srcdir)/lock.c
288 relocatable.lo
: $(srcdir)/relocatable.c
289 $(AM_V_CC
)$(LIBTOOL
) $(AM_V_lt
) --tag
=CC
--mode
=compile
$(COMPILE
) $(srcdir)/relocatable.c
290 langprefs.lo
: $(srcdir)/langprefs.c
291 $(AM_V_CC
)$(LIBTOOL
) $(AM_V_lt
) --tag
=CC
--mode
=compile
$(COMPILE
) $(srcdir)/langprefs.c
292 localename.lo
: $(srcdir)/localename.c
293 $(AM_V_CC
)$(LIBTOOL
) $(AM_V_lt
) --tag
=CC
--mode
=compile
$(COMPILE
) $(srcdir)/localename.c
294 log.lo
: $(srcdir)/log.c
295 $(AM_V_CC
)$(LIBTOOL
) $(AM_V_lt
) --tag
=CC
--mode
=compile
$(COMPILE
) $(srcdir)/log.c
296 printf.lo
: $(srcdir)/printf.c
297 $(AM_V_CC
)$(LIBTOOL
) $(AM_V_lt
) --tag
=CC
--mode
=compile
$(COMPILE
) $(srcdir)/printf.c
298 setlocale.lo
: $(srcdir)/setlocale.c
299 $(AM_V_CC
)$(LIBTOOL
) $(AM_V_lt
) --tag
=CC
--mode
=compile
$(COMPILE
) $(srcdir)/setlocale.c
300 version.lo
: $(srcdir)/version.c
301 $(AM_V_CC
)$(LIBTOOL
) $(AM_V_lt
) --tag
=CC
--mode
=compile
$(COMPILE
) $(srcdir)/version.c
302 osdep.lo
: $(srcdir)/osdep.c
303 $(AM_V_CC
)$(LIBTOOL
) $(AM_V_lt
) --tag
=CC
--mode
=compile
$(COMPILE
) $(srcdir)/osdep.c
304 intl-compat.lo
: $(srcdir)/intl-compat.c
305 $(AM_V_CC
)$(LIBTOOL
) $(AM_V_lt
) --tag
=CC
--mode
=compile
$(COMPILE
) $(srcdir)/intl-compat.c
307 # This rule is executed only on Woe32 systems.
308 # The following sed expressions come from the windres-options script. They are
309 # inlined here, so that they can be written in a Makefile without requiring a
310 # temporary file. They must contain literal newlines rather than semicolons,
311 # so that they work with the sed-3.02 that is shipped with MSYS.
312 libintl.res.o
: $(srcdir)/libintl.rc
313 nlinit
=`echo 'nl="'; echo '"'`; eval
"$$nlinit"; \
314 sed_extract_major
='/^[0-9]/{'$${nl}'s/^\([0-9]*\).*/\1/p'$${nl}q
$${nl}'}'$${nl}'c\'$${nl}0$${nl}q; \
315 sed_extract_minor='/^
[0-9][0-9]*[.
][0-9]/{'$${nl}'s
/^
[0-9]*[.
]\
([0-9]*\
).
*/\
1/p
'$${nl}q$${nl}'}'$${nl}'c
\'$${nl}0$${nl}q
; \
316 sed_extract_subminor
='/^[0-9][0-9]*[.][0-9][0-9]*[.][0-9]/{'$${nl}'s/^[0-9]*[.][0-9]*[.]\([0-9]*\).*/\1/p'$${nl}q
$${nl}'}'$${nl}'c\'$${nl}0$${nl}q; \
318 "-DPACKAGE_VERSION_STRING=\\\"$(VERSION)\\\"" \
319 "-DPACKAGE_VERSION_MAJOR="`echo '$(VERSION
)' | sed -n -e "$$sed_extract_major"` \
320 "-DPACKAGE_VERSION_MINOR="`echo '$(VERSION
)' | sed -n -e "$$sed_extract_minor"` \
321 "-DPACKAGE_VERSION_SUBMINOR="`echo '$(VERSION
)' | sed -n -e "$$sed_extract_subminor"` \
322 -i $(srcdir)/libintl.rc -o libintl.res.o --output-format=coff
323 libintl.res.lo: $(srcdir)/libintl.rc
324 nlinit=`echo 'nl
="'; echo '"'`; eval "$$nlinit"; \
325 sed_extract_major='/^
[0-9]/{'$${nl}'s
/^\
([0-9]*\
).
*/\
1/p
'$${nl}q$${nl}'}'$${nl}'c
\'$${nl}0$${nl}q
; \
326 sed_extract_minor
='/^[0-9][0-9]*[.][0-9]/{'$${nl}'s/^[0-9]*[.]\([0-9]*\).*/\1/p'$${nl}q
$${nl}'}'$${nl}'c\'$${nl}0$${nl}q; \
327 sed_extract_subminor='/^
[0-9][0-9]*[.
][0-9][0-9]*[.
][0-9]/{'$${nl}'s
/^
[0-9]*[.
][0-9]*[.
]\
([0-9]*\
).
*/\
1/p
'$${nl}q$${nl}'}'$${nl}'c
\'$${nl}0$${nl}q
; \
328 $(LIBTOOL
) --mode
=compile
--tag
=RC
$(RC
) \
329 "-DPACKAGE_VERSION_STRING=\\\"$(VERSION)\\\"" \
330 "-DPACKAGE_VERSION_MAJOR="`echo '$(VERSION)' | sed -n -e "$$sed_extract_major"` \
331 "-DPACKAGE_VERSION_MINOR="`echo '$(VERSION)' | sed -n -e "$$sed_extract_minor"` \
332 "-DPACKAGE_VERSION_SUBMINOR="`echo '$(VERSION)' | sed -n -e "$$sed_extract_subminor"` \
333 -i
$(srcdir)/libintl.rc
-o libintl.res.lo
--output-format
=coff
335 ref-add.sed
: $(srcdir)/ref-add.sin
336 sed
-e
'/^#/d' -e
's/@''PACKAGE''@/@PACKAGE@/g' $(srcdir)/ref-add.sin
> t-ref-add.sed
337 mv t-ref-add.sed ref-add.sed
338 ref-del.sed
: $(srcdir)/ref-del.sin
339 sed
-e
'/^#/d' -e
's/@''PACKAGE''@/@PACKAGE@/g' $(srcdir)/ref-del.sin
> t-ref-del.sed
340 mv t-ref-del.sed ref-del.sed
342 INCLUDES
= -I.
-I
$(srcdir) -I..
344 libgnuintl.h
: $(srcdir)/libgnuintl.h.in
345 sed
-e
'/IN_LIBGLOCALE/d' \
346 -e
's,@''HAVE_POSIX_PRINTF''@,@HAVE_POSIX_PRINTF@,g' \
347 -e
's,@''HAVE_ASPRINTF''@,@HAVE_ASPRINTF@,g' \
348 -e
's,@''HAVE_NEWLOCALE''@,@HAVE_NEWLOCALE@,g' \
349 -e
's,@''HAVE_SNPRINTF''@,@HAVE_SNPRINTF@,g' \
350 -e
's,@''HAVE_WPRINTF''@,@HAVE_WPRINTF@,g' \
351 < $(srcdir)/libgnuintl.h.in \
352 | if
test '@WOE32DLL@' = yes
; then \
353 sed
-e
's/extern \([^()]*\);/extern __declspec (dllimport) \1;/'; \
357 | sed
-e
's/extern \([^"]\)/extern LIBINTL_DLL_EXPORTED \1/' \
358 -e
"/#define _LIBINTL_H/r $(srcdir)/export.h" \
359 | sed
-e
's,@''HAVE_VISIBILITY''@,@HAVE_VISIBILITY@,g' \
362 libintl.h
: $(srcdir)/libgnuintl.h.in
363 sed
-e
'/IN_LIBGLOCALE/d' \
364 -e
's,@''HAVE_POSIX_PRINTF''@,@HAVE_POSIX_PRINTF@,g' \
365 -e
's,@''HAVE_ASPRINTF''@,@HAVE_ASPRINTF@,g' \
366 -e
's,@''HAVE_NEWLOCALE''@,@HAVE_NEWLOCALE@,g' \
367 -e
's,@''HAVE_SNPRINTF''@,@HAVE_SNPRINTF@,g' \
368 -e
's,@''HAVE_WPRINTF''@,@HAVE_WPRINTF@,g' \
369 < $(srcdir)/libgnuintl.h.in
> libintl.h
371 charset.alias
: $(srcdir)/config.charset
372 $(SHELL
) $(srcdir)/config.charset
'@host@' > t-
$@
377 # We must not install the libintl.h/libintl.a files if we are on a
378 # system which has the GNU gettext() function in its C library or in a
380 # If you want to use the one which comes with this version of the
381 # package, you have to use `configure --with-included-gettext'.
382 install: install-exec install-data
384 if
{ test "$(PACKAGE)" = "gettext-runtime" ||
test "$(PACKAGE)" = "gettext-tools"; } \
385 && test '@USE_INCLUDED_LIBINTL@' = yes
; then \
386 $(mkdir_p
) $(DESTDIR
)$(libdir) $(DESTDIR
)$(includedir); \
387 $(INSTALL_DATA
) libintl.h
$(DESTDIR
)$(includedir)/libintl.h
; \
388 $(LIBTOOL
) --mode
=install \
389 $(INSTALL_DATA
) libintl.
$la $(DESTDIR
)$(libdir)/libintl.
$la; \
390 if
test "@RELOCATABLE@" = yes
; then \
391 dependencies
=`sed -n -e 's,^dependency_libs=\(.*\),\1,p' < $(DESTDIR)$(libdir)/libintl.la | sed -e "s,^',," -e "s,'\$$,,"`; \
392 if
test -n
"$$dependencies"; then \
393 rm -f
$(DESTDIR
)$(libdir)/libintl.la
; \
399 if
test "$(PACKAGE)" = "gettext-tools" \
400 && test '@USE_INCLUDED_LIBINTL@' = no \
401 && test @GLIBC2@
!= no
; then \
402 $(mkdir_p
) $(DESTDIR
)$(libdir); \
403 $(LIBTOOL
) --mode
=install \
404 $(INSTALL_DATA
) libgnuintl.
$la $(DESTDIR
)$(libdir)/libgnuintl.
$la; \
405 rm -f
$(DESTDIR
)$(libdir)/preloadable_libintl.so
; \
406 $(INSTALL_DATA
) $(DESTDIR
)$(libdir)/libgnuintl.so
$(DESTDIR
)$(libdir)/preloadable_libintl.so
; \
407 $(LIBTOOL
) --mode
=uninstall \
408 rm -f
$(DESTDIR
)$(libdir)/libgnuintl.
$la; \
412 if
test '@USE_INCLUDED_LIBINTL@' = yes
; then \
413 if
test @GLIBC21@
= no
; then \
414 case
'@host_os@' in \
416 need_charset_alias
=true
;; \
417 darwin
* | cygwin
* | mingw
* | pw32
* | cegcc
*) \
418 need_charset_alias
=false
;; \
420 need_charset_alias
=true
;; \
423 need_charset_alias
=false
; \
425 if
$$need_charset_alias; then \
426 $(mkdir_p
) $(DESTDIR
)$(libdir); \
428 temp
=$(DESTDIR
)$(libdir)/t-charset.alias
; \
429 dest
=$(DESTDIR
)$(libdir)/charset.alias
; \
430 if
test -f
$(DESTDIR
)$(libdir)/charset.alias
; then \
431 orig
=$(DESTDIR
)$(libdir)/charset.alias
; \
432 sed
-f ref-add.sed
$$orig > $$temp; \
433 $(INSTALL_DATA
) $$temp $$dest; \
436 if
$$need_charset_alias; then \
437 orig
=charset.alias
; \
438 sed
-f ref-add.sed
$$orig > $$temp; \
439 $(INSTALL_DATA
) $$temp $$dest; \
443 $(mkdir_p
) $(DESTDIR
)$(localedir
); \
444 test -f
$(DESTDIR
)$(localedir
)/locale.alias \
445 && orig
=$(DESTDIR
)$(localedir
)/locale.alias \
446 || orig
=$(srcdir)/locale.alias
; \
447 temp
=$(DESTDIR
)$(localedir
)/t-locale.alias
; \
448 dest
=$(DESTDIR
)$(localedir
)/locale.alias
; \
449 sed
-f ref-add.sed
$$orig > $$temp; \
450 $(INSTALL_DATA
) $$temp $$dest; \
456 if
test "$(PACKAGE)" = "gettext-tools"; then \
457 $(mkdir_p
) $(DESTDIR
)$(gettextsrcdir
); \
458 $(INSTALL_DATA
) VERSION
$(DESTDIR
)$(gettextsrcdir
)/VERSION
; \
459 $(INSTALL_DATA
) ChangeLog.inst
$(DESTDIR
)$(gettextsrcdir
)/ChangeLog
; \
460 dists
="COPYING.LIB-2.0 COPYING.LIB-2.1 $(DISTFILES.common)"; \
461 for file in
$$dists; do \
462 $(INSTALL_DATA
) $(srcdir)/$$file \
463 $(DESTDIR
)$(gettextsrcdir
)/$$file; \
465 chmod a
+x
$(DESTDIR
)$(gettextsrcdir
)/config.charset
; \
466 dists
="$(DISTFILES.generated)"; \
467 for file in
$$dists; do \
468 if
test -f
$$file; then
dir=.
; else dir=$(srcdir); fi
; \
469 $(INSTALL_DATA
) $$dir/$$file \
470 $(DESTDIR
)$(gettextsrcdir
)/$$file; \
472 dists
="$(DISTFILES.obsolete)"; \
473 for file in
$$dists; do \
474 rm -f
$(DESTDIR
)$(gettextsrcdir
)/$$file; \
480 install-strip
: install
482 install-dvi install-html install-info install-ps install-pdf
:
485 if
{ test "$(PACKAGE)" = "gettext-runtime" ||
test "$(PACKAGE)" = "gettext-tools"; } \
486 && test '@USE_INCLUDED_LIBINTL@' = yes
; then \
487 $(mkdir_p
) $(DESTDIR
)$(libdir) $(DESTDIR
)$(includedir); \
491 if
test "$(PACKAGE)" = "gettext-tools" \
492 && test '@USE_INCLUDED_LIBINTL@' = no \
493 && test @GLIBC2@
!= no
; then \
494 $(mkdir_p
) $(DESTDIR
)$(libdir); \
498 if
test '@USE_INCLUDED_LIBINTL@' = yes
; then \
499 if
test @GLIBC21@
= no
; then \
500 case
'@host_os@' in \
502 need_charset_alias
=true
;; \
503 darwin
* | cygwin
* | mingw
* | pw32
* | cegcc
*) \
504 need_charset_alias
=false
;; \
506 need_charset_alias
=true
;; \
509 need_charset_alias
=false
; \
511 if
$$need_charset_alias; then \
512 $(mkdir_p
) $(DESTDIR
)$(libdir); \
514 $(mkdir_p
) $(DESTDIR
)$(localedir
); \
518 if
test "$(PACKAGE)" = "gettext-tools"; then \
519 $(mkdir_p
) $(DESTDIR
)$(gettextsrcdir
); \
524 # Define this as empty until I found a useful application.
528 if
{ test "$(PACKAGE)" = "gettext-runtime" ||
test "$(PACKAGE)" = "gettext-tools"; } \
529 && test '@USE_INCLUDED_LIBINTL@' = yes
; then \
530 rm -f
$(DESTDIR
)$(includedir)/libintl.h
; \
531 $(LIBTOOL
) --mode
=uninstall \
532 rm -f
$(DESTDIR
)$(libdir)/libintl.
$la; \
536 if
test "$(PACKAGE)" = "gettext-tools" \
537 && test '@USE_INCLUDED_LIBINTL@' = no \
538 && test @GLIBC2@
!= no
; then \
539 rm -f
$(DESTDIR
)$(libdir)/preloadable_libintl.so
; \
543 if
test '@USE_INCLUDED_LIBINTL@' = yes
; then \
544 if
test -f
$(DESTDIR
)$(libdir)/charset.alias
; then \
545 temp
=$(DESTDIR
)$(libdir)/t-charset.alias
; \
546 dest
=$(DESTDIR
)$(libdir)/charset.alias
; \
547 sed
-f ref-del.sed
$$dest > $$temp; \
548 if grep
'^# Packages using this file: $$' $$temp > /dev
/null
; then \
551 $(INSTALL_DATA
) $$temp $$dest; \
555 if
test -f
$(DESTDIR
)$(localedir
)/locale.alias
; then \
556 temp
=$(DESTDIR
)$(localedir
)/t-locale.alias
; \
557 dest
=$(DESTDIR
)$(localedir
)/locale.alias
; \
558 sed
-f ref-del.sed
$$dest > $$temp; \
559 if grep
'^# Packages using this file: $$' $$temp > /dev
/null
; then \
562 $(INSTALL_DATA
) $$temp $$dest; \
569 if
test "$(PACKAGE)" = "gettext-tools"; then \
570 for file in VERSION ChangeLog COPYING.LIB-2.0 COPYING.LIB-2.1
$(DISTFILES.common
) $(DISTFILES.generated
); do \
571 rm -f
$(DESTDIR
)$(gettextsrcdir
)/$$file; \
577 info dvi ps pdf html
:
579 $(OBJECTS
): ..
/config.h libgnuintl.h
580 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 setlocale.
$lo textdomain.
$lo: $(srcdir)/gettextP.h
$(srcdir)/gmo.h
$(srcdir)/loadinfo.h
581 localename.
$lo: $(srcdir)/gettextP.h
582 hash-string.
$lo dcigettext.
$lo loadmsgcat.
$lo: $(srcdir)/hash-string.h
583 explodename.
$lo l10nflist.
$lo: $(srcdir)/loadinfo.h
584 dcigettext.
$lo loadmsgcat.
$lo plural.
$lo plural-exp.
$lo: $(srcdir)/plural-exp.h
585 dcigettext.
$lo: $(srcdir)/eval-plural.h
586 localcharset.
$lo: $(srcdir)/localcharset.h
587 bindtextdom.
$lo dcigettext.
$lo finddomain.
$lo loadmsgcat.
$lo localealias.
$lo lock.
$lo log.
$lo: $(srcdir)/lock.h
588 localealias.
$lo localcharset.
$lo relocatable.
$lo: $(srcdir)/relocatable.h
589 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
591 # A bison-2.1 generated plural.c includes <libintl.h> if ENABLE_NLS.
592 PLURAL_DEPS_yes
= libintl.h
594 plural.
$lo: $(PLURAL_DEPS_@USE_INCLUDED_LIBINTL@
)
598 TAGS
: $(HEADERS
) $(SOURCES
)
599 here
=`pwd`; cd
$(srcdir) && etags
-o
$$here/TAGS
$(HEADERS
) $(SOURCES
)
603 CTAGS
: $(HEADERS
) $(SOURCES
)
604 here
=`pwd`; cd
$(srcdir) && ctags
-o
$$here/CTAGS
$(HEADERS
) $(SOURCES
)
608 ID
: $(HEADERS
) $(SOURCES
)
609 here
=`pwd`; cd
$(srcdir) && mkid
-f
$$here/ID
$(HEADERS
) $(SOURCES
)
613 rm -f
*.a
*.la
*.o
*.obj
*.lo core core.
*
614 rm -f libgnuintl.h libintl.h charset.alias ref-add.sed ref-del.sed
620 rm -f Makefile ID TAGS
621 if
test "$(PACKAGE)" = "gettext-runtime" ||
test "$(PACKAGE)" = "gettext-tools"; then \
622 rm -f ChangeLog.inst
$(DISTFILES.normal
); \
627 maintainer-clean
: distclean
628 @echo
"This command is intended for maintainers to use;"
629 @echo
"it deletes files that may require special tools to rebuild."
632 # GNU gettext needs not contain the file `VERSION' but contains some
633 # other files which should not be distributed in other packages.
634 distdir
= ..
/$(PACKAGE
)-$(VERSION
)/$(subdir
)
635 dist distdir
: Makefile
636 if
test "$(PACKAGE)" = "gettext-tools"; then \
639 if
test "$(PACKAGE)" = "gettext-runtime"; then \
640 additional
="$(DISTFILES.gettext)"; \
642 additional
="$(DISTFILES.normal)"; \
644 $(MAKE
) $(DISTFILES.common
) $(DISTFILES.generated
) $$additional; \
645 for file in ChangeLog
$(DISTFILES.common
) $(DISTFILES.generated
) $$additional; do \
646 if
test -f
$$file; then
dir=.
; else dir=$(srcdir); fi
; \
647 cp
-p
$$dir/$$file $(distdir
) ||
test $$file = Makefile.in || exit
1; \
651 Makefile
: $(srcdir)/Makefile.in
$(top_builddir
)/config.status
652 cd
$(top_builddir
) && $(SHELL
) .
/config.status
653 # This would be more efficient, but doesn't work any more with autoconf-2.57,
654 # when AC_CONFIG_FILES([intl/Makefile:somedir/Makefile.in]) is used.
655 # cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
657 # Tell versions [3.59,3.63) of GNU make not to export all variables.
658 # Otherwise a system limit (for SysV at least) may be exceeded.