Makefile.in 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587
  1. # Makefile for directory with message catalog handling library of GNU gettext
  2. # Copyright (C) 1995-1998, 2000-2007 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
  17. # USA.
  18. PACKAGE = @PACKAGE@
  19. VERSION = @VERSION@
  20. SHELL = /bin/sh
  21. srcdir = @srcdir@
  22. top_srcdir = @top_srcdir@
  23. top_builddir = ..
  24. # The VPATH variables allows builds with $builddir != $srcdir, assuming a
  25. # 'make' program that supports VPATH (such as GNU make). This line is removed
  26. # by autoconf automatically when "$(srcdir)" = ".".
  27. # In this directory, the VPATH handling is particular:
  28. # 1. If INTL_LIBTOOL_SUFFIX_PREFIX is 'l' (indicating a build with libtool),
  29. # the .c -> .lo rules carefully use $(srcdir), so that VPATH can be omitted.
  30. # 2. If PACKAGE = gettext-tools, VPATH _must_ be omitted, because otherwise
  31. # 'make' does the wrong thing if GNU gettext was configured with
  32. # "./configure --srcdir=`pwd`", namely it gets confused by the .lo and .la
  33. # files it finds in srcdir = ../../gettext-runtime/intl.
  34. VPATH = $(srcdir)
  35. prefix = @prefix@
  36. exec_prefix = @exec_prefix@
  37. transform = @program_transform_name@
  38. libdir = @libdir@
  39. includedir = @includedir@
  40. datarootdir = @datarootdir@
  41. datadir = @datadir@
  42. localedir = $(datadir)/locale
  43. gettextsrcdir = $(datadir)/gettext/intl
  44. aliaspath = $(localedir)
  45. subdir = intl
  46. INSTALL = @INSTALL@
  47. INSTALL_DATA = @INSTALL_DATA@
  48. # We use $(mkdir_p).
  49. # In automake <= 1.9.x, $(mkdir_p) is defined either as "mkdir -p --" or as
  50. # "$(mkinstalldirs)" or as "$(install_sh) -d". For these automake versions,
  51. # @install_sh@ does not start with $(SHELL), so we add it.
  52. # In automake >= 1.10, @mkdir_p@ is derived from ${MKDIR_P}, which is defined
  53. # either as "/path/to/mkdir -p" or ".../install-sh -c -d". For these automake
  54. # versions, $(mkinstalldirs) and $(install_sh) are unused.
  55. mkinstalldirs = $(SHELL) @install_sh@ -d
  56. install_sh = $(SHELL) @install_sh@
  57. MKDIR_P = @MKDIR_P@
  58. mkdir_p = @mkdir_p@
  59. l = @INTL_LIBTOOL_SUFFIX_PREFIX@
  60. AR = ar
  61. CC = @CC@
  62. LIBTOOL = @LIBTOOL@
  63. RANLIB = @RANLIB@
  64. YACC = @INTLBISON@ -y -d
  65. YFLAGS = --name-prefix=__gettext
  66. WINDRES = @WINDRES@
  67. # -DBUILDING_LIBINTL: Change expansion of LIBINTL_DLL_EXPORTED macro.
  68. # -DBUILDING_DLL: Change expansion of RELOCATABLE_DLL_EXPORTED macro.
  69. DEFS = -DLOCALEDIR=\"$(localedir)\" -DLOCALE_ALIAS_PATH=\"$(aliaspath)\" \
  70. -DLIBDIR=\"$(libdir)\" -DBUILDING_LIBINTL -DBUILDING_DLL -DIN_LIBINTL \
  71. -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"$(libdir)\" -DNO_XMALLOC \
  72. -Dset_relocation_prefix=libintl_set_relocation_prefix \
  73. -Drelocate=libintl_relocate \
  74. -DDEPENDS_ON_LIBICONV=1 @DEFS@
  75. CPPFLAGS = @CPPFLAGS@
  76. CFLAGS = @CFLAGS@ @CFLAG_VISIBILITY@
  77. LDFLAGS = @LDFLAGS@ $(LDFLAGS_@WOE32DLL@)
  78. LDFLAGS_yes = -Wl,--export-all-symbols
  79. LDFLAGS_no =
  80. LIBS = @LIBS@
  81. COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS)
  82. HEADERS = \
  83. gmo.h \
  84. gettextP.h \
  85. hash-string.h \
  86. loadinfo.h \
  87. plural-exp.h \
  88. eval-plural.h \
  89. localcharset.h \
  90. lock.h \
  91. relocatable.h \
  92. tsearch.h tsearch.c \
  93. xsize.h \
  94. printf-args.h printf-args.c \
  95. printf-parse.h wprintf-parse.h printf-parse.c \
  96. vasnprintf.h vasnwprintf.h vasnprintf.c \
  97. os2compat.h \
  98. libgnuintl.h.in
  99. SOURCES = \
  100. bindtextdom.c \
  101. dcgettext.c \
  102. dgettext.c \
  103. gettext.c \
  104. finddomain.c \
  105. hash-string.c \
  106. loadmsgcat.c \
  107. localealias.c \
  108. textdomain.c \
  109. l10nflist.c \
  110. explodename.c \
  111. dcigettext.c \
  112. dcngettext.c \
  113. dngettext.c \
  114. ngettext.c \
  115. plural.y \
  116. plural-exp.c \
  117. localcharset.c \
  118. lock.c \
  119. relocatable.c \
  120. langprefs.c \
  121. localename.c \
  122. log.c \
  123. printf.c \
  124. version.c \
  125. osdep.c \
  126. os2compat.c \
  127. intl-exports.c \
  128. intl-compat.c
  129. OBJECTS = \
  130. bindtextdom.$lo \
  131. dcgettext.$lo \
  132. dgettext.$lo \
  133. gettext.$lo \
  134. finddomain.$lo \
  135. hash-string.$lo \
  136. loadmsgcat.$lo \
  137. localealias.$lo \
  138. textdomain.$lo \
  139. l10nflist.$lo \
  140. explodename.$lo \
  141. dcigettext.$lo \
  142. dcngettext.$lo \
  143. dngettext.$lo \
  144. ngettext.$lo \
  145. plural.$lo \
  146. plural-exp.$lo \
  147. localcharset.$lo \
  148. lock.$lo \
  149. relocatable.$lo \
  150. langprefs.$lo \
  151. localename.$lo \
  152. log.$lo \
  153. printf.$lo \
  154. version.$lo \
  155. osdep.$lo \
  156. intl-compat.$lo
  157. OBJECTS_RES_yes = libintl.res
  158. OBJECTS_RES_no =
  159. DISTFILES.common = Makefile.in \
  160. config.charset locale.alias ref-add.sin ref-del.sin export.h libintl.rc \
  161. $(HEADERS) $(SOURCES)
  162. DISTFILES.generated = plural.c
  163. DISTFILES.normal = VERSION
  164. DISTFILES.gettext = COPYING.LIB-2.0 COPYING.LIB-2.1 libintl.glibc README.woe32
  165. DISTFILES.obsolete = xopen-msg.sed linux-msg.sed po2tbl.sed.in cat-compat.c \
  166. COPYING.LIB-2 gettext.h libgettext.h plural-eval.c libgnuintl.h \
  167. libgnuintl.h_vms Makefile.vms libgnuintl.h.msvc-static \
  168. libgnuintl.h.msvc-shared Makefile.msvc
  169. all: all-@USE_INCLUDED_LIBINTL@
  170. all-yes: libintl.$la libintl.h charset.alias ref-add.sed ref-del.sed
  171. all-no: all-no-@BUILD_INCLUDED_LIBINTL@
  172. all-no-yes: libgnuintl.$la
  173. all-no-no:
  174. libintl.a libgnuintl.a: $(OBJECTS)
  175. rm -f $@
  176. $(AR) cru $@ $(OBJECTS)
  177. $(RANLIB) $@
  178. libintl.la libgnuintl.la: $(OBJECTS) $(OBJECTS_RES_@WOE32@)
  179. $(LIBTOOL) --mode=link \
  180. $(CC) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS) $(LDFLAGS) -o $@ \
  181. $(OBJECTS) @LTLIBICONV@ @INTL_MACOSX_LIBS@ $(LIBS) @LTLIBTHREAD@ @LTLIBC@ \
  182. $(OBJECTS_RES_@WOE32@) \
  183. -version-info $(LTV_CURRENT):$(LTV_REVISION):$(LTV_AGE) \
  184. -rpath $(libdir) \
  185. -no-undefined
  186. # Libtool's library version information for libintl.
  187. # Before making a gettext release, the gettext maintainer must change this
  188. # according to the libtool documentation, section "Library interface versions".
  189. # Maintainers of other packages that include the intl directory must *not*
  190. # change these values.
  191. LTV_CURRENT=8
  192. LTV_REVISION=2
  193. LTV_AGE=0
  194. .SUFFIXES:
  195. .SUFFIXES: .c .y .o .lo .sin .sed
  196. .c.o:
  197. $(COMPILE) $<
  198. .y.c:
  199. $(YACC) $(YFLAGS) --output $@ $<
  200. rm -f $*.h
  201. bindtextdom.lo: $(srcdir)/bindtextdom.c
  202. $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/bindtextdom.c
  203. dcgettext.lo: $(srcdir)/dcgettext.c
  204. $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dcgettext.c
  205. dgettext.lo: $(srcdir)/dgettext.c
  206. $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dgettext.c
  207. gettext.lo: $(srcdir)/gettext.c
  208. $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/gettext.c
  209. finddomain.lo: $(srcdir)/finddomain.c
  210. $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/finddomain.c
  211. hash-string.lo: $(srcdir)/hash-string.c
  212. $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/hash-string.c
  213. loadmsgcat.lo: $(srcdir)/loadmsgcat.c
  214. $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/loadmsgcat.c
  215. localealias.lo: $(srcdir)/localealias.c
  216. $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/localealias.c
  217. textdomain.lo: $(srcdir)/textdomain.c
  218. $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/textdomain.c
  219. l10nflist.lo: $(srcdir)/l10nflist.c
  220. $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/l10nflist.c
  221. explodename.lo: $(srcdir)/explodename.c
  222. $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/explodename.c
  223. dcigettext.lo: $(srcdir)/dcigettext.c
  224. $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dcigettext.c
  225. dcngettext.lo: $(srcdir)/dcngettext.c
  226. $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dcngettext.c
  227. dngettext.lo: $(srcdir)/dngettext.c
  228. $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dngettext.c
  229. ngettext.lo: $(srcdir)/ngettext.c
  230. $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/ngettext.c
  231. plural.lo: $(srcdir)/plural.c
  232. $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/plural.c
  233. plural-exp.lo: $(srcdir)/plural-exp.c
  234. $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/plural-exp.c
  235. localcharset.lo: $(srcdir)/localcharset.c
  236. $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/localcharset.c
  237. lock.lo: $(srcdir)/lock.c
  238. $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/lock.c
  239. relocatable.lo: $(srcdir)/relocatable.c
  240. $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/relocatable.c
  241. langprefs.lo: $(srcdir)/langprefs.c
  242. $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/langprefs.c
  243. localename.lo: $(srcdir)/localename.c
  244. $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/localename.c
  245. log.lo: $(srcdir)/log.c
  246. $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/log.c
  247. printf.lo: $(srcdir)/printf.c
  248. $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/printf.c
  249. version.lo: $(srcdir)/version.c
  250. $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/version.c
  251. osdep.lo: $(srcdir)/osdep.c
  252. $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/osdep.c
  253. intl-compat.lo: $(srcdir)/intl-compat.c
  254. $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/intl-compat.c
  255. # This rule is executed only on Woe32 systems.
  256. # The following sed expressions come from the windres-options script. They are
  257. # inlined here, so that they can be written in a Makefile without requiring a
  258. # temporary file. They must contain literal newlines rather than semicolons,
  259. # so that they work with the sed-3.02 that is shipped with MSYS. We can use
  260. # GNU bash's $'\n' syntax to obtain such a newline.
  261. libintl.res: $(srcdir)/libintl.rc
  262. nl=$$'\n'; \
  263. sed_extract_major='/^[0-9]/{'$${nl}'s/^\([0-9]*\).*/\1/p'$${nl}q$${nl}'}'$${nl}'c\'$${nl}0$${nl}q; \
  264. 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; \
  265. 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; \
  266. $(WINDRES) \
  267. "-DPACKAGE_VERSION_STRING=\\\"$(VERSION)\\\"" \
  268. "-DPACKAGE_VERSION_MAJOR="`echo '$(VERSION)' | sed -n -e "$$sed_extract_major"` \
  269. "-DPACKAGE_VERSION_MINOR="`echo '$(VERSION)' | sed -n -e "$$sed_extract_minor"` \
  270. "-DPACKAGE_VERSION_SUBMINOR="`echo '$(VERSION)' | sed -n -e "$$sed_extract_subminor"` \
  271. -i $(srcdir)/libintl.rc -o libintl.res --output-format=coff
  272. ref-add.sed: $(srcdir)/ref-add.sin
  273. sed -e '/^#/d' -e 's/@''PACKAGE''@/@PACKAGE@/g' $(srcdir)/ref-add.sin > t-ref-add.sed
  274. mv t-ref-add.sed ref-add.sed
  275. ref-del.sed: $(srcdir)/ref-del.sin
  276. sed -e '/^#/d' -e 's/@''PACKAGE''@/@PACKAGE@/g' $(srcdir)/ref-del.sin > t-ref-del.sed
  277. mv t-ref-del.sed ref-del.sed
  278. INCLUDES = -I. -I$(srcdir) -I..
  279. libgnuintl.h: $(srcdir)/libgnuintl.h.in
  280. sed -e '/IN_LIBGLOCALE/d' \
  281. -e 's,@''HAVE_POSIX_PRINTF''@,@HAVE_POSIX_PRINTF@,g' \
  282. -e 's,@''HAVE_ASPRINTF''@,@HAVE_ASPRINTF@,g' \
  283. -e 's,@''HAVE_SNPRINTF''@,@HAVE_SNPRINTF@,g' \
  284. -e 's,@''HAVE_WPRINTF''@,@HAVE_WPRINTF@,g' \
  285. < $(srcdir)/libgnuintl.h.in \
  286. | if test '@WOE32DLL@' = yes; then \
  287. sed -e 's/extern \([^()]*\);/extern __declspec (dllimport) \1;/'; \
  288. else \
  289. cat; \
  290. fi \
  291. | sed -e 's/extern \([^"]\)/extern LIBINTL_DLL_EXPORTED \1/' \
  292. -e "/#define _LIBINTL_H/r $(srcdir)/export.h" \
  293. | sed -e 's,@''HAVE_VISIBILITY''@,@HAVE_VISIBILITY@,g' \
  294. > libgnuintl.h
  295. libintl.h: $(srcdir)/libgnuintl.h.in
  296. sed -e '/IN_LIBGLOCALE/d' \
  297. -e 's,@''HAVE_POSIX_PRINTF''@,@HAVE_POSIX_PRINTF@,g' \
  298. -e 's,@''HAVE_ASPRINTF''@,@HAVE_ASPRINTF@,g' \
  299. -e 's,@''HAVE_SNPRINTF''@,@HAVE_SNPRINTF@,g' \
  300. -e 's,@''HAVE_WPRINTF''@,@HAVE_WPRINTF@,g' \
  301. < $(srcdir)/libgnuintl.h.in > libintl.h
  302. charset.alias: $(srcdir)/config.charset
  303. $(SHELL) $(srcdir)/config.charset '@host@' > t-$@
  304. mv t-$@ $@
  305. check: all
  306. # We must not install the libintl.h/libintl.a files if we are on a
  307. # system which has the GNU gettext() function in its C library or in a
  308. # separate library.
  309. # If you want to use the one which comes with this version of the
  310. # package, you have to use `configure --with-included-gettext'.
  311. install: install-exec install-data
  312. install-exec: all
  313. if { test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; } \
  314. && test '@USE_INCLUDED_LIBINTL@' = yes; then \
  315. $(mkdir_p) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir); \
  316. $(INSTALL_DATA) libintl.h $(DESTDIR)$(includedir)/libintl.h; \
  317. $(LIBTOOL) --mode=install \
  318. $(INSTALL_DATA) libintl.$la $(DESTDIR)$(libdir)/libintl.$la; \
  319. if test "@RELOCATABLE@" = yes; then \
  320. dependencies=`sed -n -e 's,^dependency_libs=\(.*\),\1,p' < $(DESTDIR)$(libdir)/libintl.la | sed -e "s,^',," -e "s,'\$$,,"`; \
  321. if test -n "$$dependencies"; then \
  322. rm -f $(DESTDIR)$(libdir)/libintl.la; \
  323. fi; \
  324. fi; \
  325. else \
  326. : ; \
  327. fi
  328. if test "$(PACKAGE)" = "gettext-tools" \
  329. && test '@USE_INCLUDED_LIBINTL@' = no \
  330. && test @GLIBC2@ != no; then \
  331. $(mkdir_p) $(DESTDIR)$(libdir); \
  332. $(LIBTOOL) --mode=install \
  333. $(INSTALL_DATA) libgnuintl.$la $(DESTDIR)$(libdir)/libgnuintl.$la; \
  334. rm -f $(DESTDIR)$(libdir)/preloadable_libintl.so; \
  335. $(INSTALL_DATA) $(DESTDIR)$(libdir)/libgnuintl.so $(DESTDIR)$(libdir)/preloadable_libintl.so; \
  336. $(LIBTOOL) --mode=uninstall \
  337. rm -f $(DESTDIR)$(libdir)/libgnuintl.$la; \
  338. else \
  339. : ; \
  340. fi
  341. if test '@USE_INCLUDED_LIBINTL@' = yes; then \
  342. test @GLIBC21@ != no || $(mkdir_p) $(DESTDIR)$(libdir); \
  343. temp=$(DESTDIR)$(libdir)/t-charset.alias; \
  344. dest=$(DESTDIR)$(libdir)/charset.alias; \
  345. if test -f $(DESTDIR)$(libdir)/charset.alias; then \
  346. orig=$(DESTDIR)$(libdir)/charset.alias; \
  347. sed -f ref-add.sed $$orig > $$temp; \
  348. $(INSTALL_DATA) $$temp $$dest; \
  349. rm -f $$temp; \
  350. else \
  351. if test @GLIBC21@ = no; then \
  352. orig=charset.alias; \
  353. sed -f ref-add.sed $$orig > $$temp; \
  354. $(INSTALL_DATA) $$temp $$dest; \
  355. rm -f $$temp; \
  356. fi; \
  357. fi; \
  358. $(mkdir_p) $(DESTDIR)$(localedir); \
  359. test -f $(DESTDIR)$(localedir)/locale.alias \
  360. && orig=$(DESTDIR)$(localedir)/locale.alias \
  361. || orig=$(srcdir)/locale.alias; \
  362. temp=$(DESTDIR)$(localedir)/t-locale.alias; \
  363. dest=$(DESTDIR)$(localedir)/locale.alias; \
  364. sed -f ref-add.sed $$orig > $$temp; \
  365. $(INSTALL_DATA) $$temp $$dest; \
  366. rm -f $$temp; \
  367. else \
  368. : ; \
  369. fi
  370. install-data: all
  371. if test "$(PACKAGE)" = "gettext-tools"; then \
  372. $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \
  373. $(INSTALL_DATA) VERSION $(DESTDIR)$(gettextsrcdir)/VERSION; \
  374. $(INSTALL_DATA) ChangeLog.inst $(DESTDIR)$(gettextsrcdir)/ChangeLog; \
  375. dists="COPYING.LIB-2.0 COPYING.LIB-2.1 $(DISTFILES.common)"; \
  376. for file in $$dists; do \
  377. $(INSTALL_DATA) $(srcdir)/$$file \
  378. $(DESTDIR)$(gettextsrcdir)/$$file; \
  379. done; \
  380. chmod a+x $(DESTDIR)$(gettextsrcdir)/config.charset; \
  381. dists="$(DISTFILES.generated)"; \
  382. for file in $$dists; do \
  383. if test -f $$file; then dir=.; else dir=$(srcdir); fi; \
  384. $(INSTALL_DATA) $$dir/$$file \
  385. $(DESTDIR)$(gettextsrcdir)/$$file; \
  386. done; \
  387. dists="$(DISTFILES.obsolete)"; \
  388. for file in $$dists; do \
  389. rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
  390. done; \
  391. else \
  392. : ; \
  393. fi
  394. install-strip: install
  395. install-dvi install-html install-info install-ps install-pdf:
  396. installdirs:
  397. if { test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; } \
  398. && test '@USE_INCLUDED_LIBINTL@' = yes; then \
  399. $(mkdir_p) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir); \
  400. else \
  401. : ; \
  402. fi
  403. if test "$(PACKAGE)" = "gettext-tools" \
  404. && test '@USE_INCLUDED_LIBINTL@' = no \
  405. && test @GLIBC2@ != no; then \
  406. $(mkdir_p) $(DESTDIR)$(libdir); \
  407. else \
  408. : ; \
  409. fi
  410. if test '@USE_INCLUDED_LIBINTL@' = yes; then \
  411. test @GLIBC21@ != no || $(mkdir_p) $(DESTDIR)$(libdir); \
  412. $(mkdir_p) $(DESTDIR)$(localedir); \
  413. else \
  414. : ; \
  415. fi
  416. if test "$(PACKAGE)" = "gettext-tools"; then \
  417. $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \
  418. else \
  419. : ; \
  420. fi
  421. # Define this as empty until I found a useful application.
  422. installcheck:
  423. uninstall:
  424. if { test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; } \
  425. && test '@USE_INCLUDED_LIBINTL@' = yes; then \
  426. rm -f $(DESTDIR)$(includedir)/libintl.h; \
  427. $(LIBTOOL) --mode=uninstall \
  428. rm -f $(DESTDIR)$(libdir)/libintl.$la; \
  429. else \
  430. : ; \
  431. fi
  432. if test "$(PACKAGE)" = "gettext-tools" \
  433. && test '@USE_INCLUDED_LIBINTL@' = no \
  434. && test @GLIBC2@ != no; then \
  435. rm -f $(DESTDIR)$(libdir)/preloadable_libintl.so; \
  436. else \
  437. : ; \
  438. fi
  439. if test '@USE_INCLUDED_LIBINTL@' = yes; then \
  440. if test -f $(DESTDIR)$(libdir)/charset.alias; then \
  441. temp=$(DESTDIR)$(libdir)/t-charset.alias; \
  442. dest=$(DESTDIR)$(libdir)/charset.alias; \
  443. sed -f ref-del.sed $$dest > $$temp; \
  444. if grep '^# Packages using this file: $$' $$temp > /dev/null; then \
  445. rm -f $$dest; \
  446. else \
  447. $(INSTALL_DATA) $$temp $$dest; \
  448. fi; \
  449. rm -f $$temp; \
  450. fi; \
  451. if test -f $(DESTDIR)$(localedir)/locale.alias; then \
  452. temp=$(DESTDIR)$(localedir)/t-locale.alias; \
  453. dest=$(DESTDIR)$(localedir)/locale.alias; \
  454. sed -f ref-del.sed $$dest > $$temp; \
  455. if grep '^# Packages using this file: $$' $$temp > /dev/null; then \
  456. rm -f $$dest; \
  457. else \
  458. $(INSTALL_DATA) $$temp $$dest; \
  459. fi; \
  460. rm -f $$temp; \
  461. fi; \
  462. else \
  463. : ; \
  464. fi
  465. if test "$(PACKAGE)" = "gettext-tools"; then \
  466. for file in VERSION ChangeLog COPYING.LIB-2.0 COPYING.LIB-2.1 $(DISTFILES.common) $(DISTFILES.generated); do \
  467. rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
  468. done; \
  469. else \
  470. : ; \
  471. fi
  472. info dvi ps pdf html:
  473. $(OBJECTS): ../config.h libgnuintl.h
  474. 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
  475. hash-string.$lo dcigettext.$lo loadmsgcat.$lo: $(srcdir)/hash-string.h
  476. explodename.$lo l10nflist.$lo: $(srcdir)/loadinfo.h
  477. dcigettext.$lo loadmsgcat.$lo plural.$lo plural-exp.$lo: $(srcdir)/plural-exp.h
  478. dcigettext.$lo: $(srcdir)/eval-plural.h
  479. localcharset.$lo: $(srcdir)/localcharset.h
  480. bindtextdom.$lo dcigettext.$lo finddomain.$lo loadmsgcat.$lo localealias.$lo lock.$lo log.$lo: $(srcdir)/lock.h
  481. localealias.$lo localcharset.$lo relocatable.$lo: $(srcdir)/relocatable.h
  482. 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
  483. # A bison-2.1 generated plural.c includes <libintl.h> if ENABLE_NLS.
  484. PLURAL_DEPS_yes = libintl.h
  485. PLURAL_DEPS_no =
  486. plural.$lo: $(PLURAL_DEPS_@USE_INCLUDED_LIBINTL@)
  487. tags: TAGS
  488. TAGS: $(HEADERS) $(SOURCES)
  489. here=`pwd`; cd $(srcdir) && etags -o $$here/TAGS $(HEADERS) $(SOURCES)
  490. ctags: CTAGS
  491. CTAGS: $(HEADERS) $(SOURCES)
  492. here=`pwd`; cd $(srcdir) && ctags -o $$here/CTAGS $(HEADERS) $(SOURCES)
  493. id: ID
  494. ID: $(HEADERS) $(SOURCES)
  495. here=`pwd`; cd $(srcdir) && mkid -f$$here/ID $(HEADERS) $(SOURCES)
  496. mostlyclean:
  497. rm -f *.a *.la *.o *.obj *.lo libintl.res core core.*
  498. rm -f libgnuintl.h libintl.h charset.alias ref-add.sed ref-del.sed
  499. rm -f -r .libs _libs
  500. clean: mostlyclean
  501. distclean: clean
  502. rm -f Makefile ID TAGS
  503. if test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; then \
  504. rm -f ChangeLog.inst $(DISTFILES.normal); \
  505. else \
  506. : ; \
  507. fi
  508. maintainer-clean: distclean
  509. @echo "This command is intended for maintainers to use;"
  510. @echo "it deletes files that may require special tools to rebuild."
  511. # GNU gettext needs not contain the file `VERSION' but contains some
  512. # other files which should not be distributed in other packages.
  513. distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
  514. dist distdir: Makefile
  515. if test "$(PACKAGE)" = "gettext-tools"; then \
  516. : ; \
  517. else \
  518. if test "$(PACKAGE)" = "gettext-runtime"; then \
  519. additional="$(DISTFILES.gettext)"; \
  520. else \
  521. additional="$(DISTFILES.normal)"; \
  522. fi; \
  523. $(MAKE) $(DISTFILES.common) $(DISTFILES.generated) $$additional; \
  524. for file in ChangeLog $(DISTFILES.common) $(DISTFILES.generated) $$additional; do \
  525. if test -f $$file; then dir=.; else dir=$(srcdir); fi; \
  526. cp -p $$dir/$$file $(distdir) || test $$file = Makefile.in || exit 1; \
  527. done; \
  528. fi
  529. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  530. cd $(top_builddir) && $(SHELL) ./config.status
  531. # This would be more efficient, but doesn't work any more with autoconf-2.57,
  532. # when AC_CONFIG_FILES([intl/Makefile:somedir/Makefile.in]) is used.
  533. # cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
  534. # Tell versions [3.59,3.63) of GNU make not to export all variables.
  535. # Otherwise a system limit (for SysV at least) may be exceeded.
  536. .NOEXPORT: