Makefile.in 19 KB

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