Makefile.in 16 KB

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