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