Makefile.am 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303
  1. # Makefile.am for texi2html.
  2. # Process this file with automake to produce Makefile.in
  3. #
  4. # Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
  5. # 2009, 2010 Free Software Foundation, Inc.
  6. #
  7. # This file is free software; as a special exception the author gives
  8. # unlimited permission to copy and/or distribute it, with or without
  9. # modifications, as long as this notice is preserved.
  10. #
  11. # This program is distributed in the hope that it will be useful, but
  12. # WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
  13. # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  14. # don't install gmo files from texi2html directories if in texinfo,
  15. # they are also in ../po and ../po_document
  16. if TEXI2HTML
  17. po_subdirs = po_document po_messages
  18. po_document_dir = .
  19. else
  20. po_subdirs =
  21. po_document_dir = ..
  22. config.rpath: $(srcdir)/../build-aux/config.rpath
  23. ${INSTALL_DATA} $(srcdir)/../build-aux/config.rpath config.rpath
  24. AUTHORS: $(srcdir)/../AUTHORS
  25. (echo "Below is a copy of the texinfo AUTHORS file, listing texi2html authors"; echo) \
  26. | cat - $(srcdir)/../AUTHORS > $@
  27. endif
  28. SUBDIRS = $(po_subdirs) . test
  29. imagesdir = $(datadir)/texi2html/images
  30. #i18ndir = $(datadir)/texi2html/i18n
  31. initdir = $(datadir)/texinfo/init
  32. bin_SCRIPTS = texi2any
  33. texi2html_additional_scripts = \
  34. MySimple.pm \
  35. T2h_i18n.pm \
  36. texi2html.pm \
  37. translations.pl \
  38. examples/l2h.init \
  39. T2h_l2h.pm \
  40. documentlanguages.pl
  41. texi2html_formats = \
  42. formats/html.pm \
  43. formats/info.pm \
  44. formats/docbook.pm \
  45. formats/xml.pm \
  46. formats/plaintext.pm
  47. dist_init_DATA = maintained_extra/book.pm \
  48. maintained_extra/chm.pm \
  49. maintained_extra/tex4ht.pm \
  50. maintained_extra/html32.pm \
  51. maintained_extra/mediawiki.pm
  52. texi2html_sources = texi2html_configured.pl $(texi2html_additional_scripts)
  53. noinst_SCRIPTS = manage_i18n.pl buildt2h.sh addformats.sh \
  54. parse_8bit_makeinfo_maps.pl gettext_to_separated.pl separated_to_hash.pl
  55. # style_example.css comes from http://planet.gnu.org/~ams/style.css
  56. # texinfo-bright-colors.css from http://hollmen.net/texinfo/ by Jaakko Hollmén
  57. EXTRA_DIST = \
  58. configure.ac \
  59. config.rpath \
  60. autogen.sh \
  61. AUTHORS \
  62. MySimple.pod \
  63. $(noinst_SCRIPTS) \
  64. missing-texi2html \
  65. texi2html.pl \
  66. texi2html.spec.in \
  67. texi2html.pl \
  68. regenerate_documentlanguages.pl \
  69. $(texi2html_additional_scripts) \
  70. $(texi2html_formats) \
  71. examples/makeinfo.pm \
  72. examples/xhtml.pm \
  73. examples/noheaders.pm \
  74. examples/utf8.pm \
  75. examples/enable_encoding.pm \
  76. examples/roff.pm \
  77. examples/my-bib-macros.texi \
  78. examples/bib-example.texi \
  79. examples/glossary.texi \
  80. examples/style_example.css \
  81. examples/texinfo-bright-colors.css \
  82. lib \
  83. po_messages/Makevars.in \
  84. po_messages/POTFILES.in.in \
  85. po_document/Makevars.in \
  86. po_document/POTFILES.in.in \
  87. i18n_ref \
  88. translations.pl
  89. dist_images_DATA = images/a_begin.png \
  90. images/a_begin_na.png \
  91. images/a_document.png \
  92. images/a_document_na.png \
  93. images/a_empty.png \
  94. images/a_end.png \
  95. images/a_end_na.png \
  96. images/a_help.png \
  97. images/a_help_na.png \
  98. images/a_index.png \
  99. images/a_index_na.png \
  100. images/a_leftdouble.png \
  101. images/a_leftdouble_na.png \
  102. images/a_left.png \
  103. images/a_left_na.png \
  104. images/a_page.png \
  105. images/a_page_na.png \
  106. images/a_rightdouble.png \
  107. images/a_rightdouble_na.png \
  108. images/a_right.png \
  109. images/a_right_na.png \
  110. images/a_searchdoc.png \
  111. images/a_searchdoc_na.png \
  112. images/a_search.png \
  113. images/a_search_na.png \
  114. images/a_tableofcon.png \
  115. images/a_tableofcon_na.png \
  116. images/a_top.png \
  117. images/a_top_na.png \
  118. images/a_up.png \
  119. images/a_up_na.png \
  120. images/bg.jpg \
  121. images/bg_left.png \
  122. images/bg_right.png \
  123. images/blue_dir.png \
  124. images/blue_down.png \
  125. images/blue_grab.png \
  126. images/blue_help.png \
  127. images/blue_next.png \
  128. images/blue_nnext.png \
  129. images/blue_pprev.png \
  130. images/blue_prev.png \
  131. images/blue_readme.png \
  132. images/blue_top.png \
  133. images/blue_up.png \
  134. images/blue_uup.png \
  135. images/contents_motif.png \
  136. images/COPYING \
  137. images/COPYING.Attribution-ShareAlike \
  138. images/GPL \
  139. images/README \
  140. images/index_motif.png \
  141. images/Mybg.png \
  142. images/next_motif.png \
  143. images/next_motif_gr.png \
  144. images/previous_motif.png \
  145. images/previous_motif_gr.png \
  146. images/spacer3.png \
  147. images/xy_contents.png \
  148. images/xy_foot.png \
  149. images/xy_next.png \
  150. images/xy_next_gr.png \
  151. images/xy_nextsection.png \
  152. images/xy_nextsection_gr.png \
  153. images/xy_previous.png \
  154. images/xy_previous_gr.png \
  155. images/xy_previoussection.png \
  156. images/xy_previoussection_gr.png \
  157. images/xy_up.png \
  158. images/xy_up_gr.png
  159. texi2html.temp: $(texi2html_sources)
  160. $(SHELL) $(srcdir)/buildt2h.sh $@ $^
  161. texi2any: texi2html.temp $(texi2html_formats)
  162. $(SHELL) $(srcdir)/addformats.sh $@ $^
  163. chmod a+x $@
  164. texi2html.spec: texi2html.spec.in $(top_builddir)/configure
  165. @echo Generating $@...
  166. @sed -e "s/[@]PACKAGE_VERSION[@]/$(PACKAGE_VERSION)/" \
  167. $(srcdir)/texi2html.spec.in >texi2html.tmp
  168. @cp texi2html.tmp texi2html.spec
  169. -@rm texi2html.tmp
  170. $(po_document_dir)/po_document/$(PACKAGE)_document.pot:
  171. if test '$(USE_NLS)' = 'yes'; then \
  172. cd $(po_document_dir)/po_document && $(MAKE) $(AM_MAKEFLAGS) update-po; \
  173. fi
  174. # notice the
  175. # cat $< | sed -e 's/charset=CHARSET/charset=ascii/'
  176. # Indeed $(po_document_dir)/po_document/$(PACKAGE)_document.pot is
  177. # autogenerated with charset CHARSET (and no command line option for
  178. # xgettext to change it), and msgexec doesn't like it and don't do anything.
  179. # msgexec: present charset "CHARSET" is not a portable encoding name
  180. # (Actually we write out the value of $<, but that's what it is.)
  181. i18n/en.thl i18n/: $(po_document_dir)/po_document/$(PACKAGE)_document.pot
  182. $(MKDIR_P) i18n
  183. if test '$(USE_NLS)' = 'yes'; then \
  184. for file in "$(srcdir)/$(po_document_dir)/po_document/"*".po"; do \
  185. lang=`basename "$$file" .po | sed 's/\..*//'`; \
  186. test "$$lang" = 'en' && continue; \
  187. msgexec -i "$$file" "$(srcdir)/gettext_to_separated.pl" \
  188. | "$(srcdir)/separated_to_hash.pl" $$lang > i18n/$$lang.thl; \
  189. done; \
  190. cat $(po_document_dir)/po_document/$(PACKAGE)_document.pot \
  191. | sed -e 's/charset=CHARSET/charset=ascii/' \
  192. | msgexec "$(srcdir)/gettext_to_separated.pl" \
  193. | "$(srcdir)/separated_to_hash.pl" en >i18n/en.thl; \
  194. else \
  195. cp -p "$(srcdir)/i18n_ref/"*.thl i18n; \
  196. fi
  197. i18n_ref:
  198. $(MKDIR_P) i18n_ref
  199. # Should be done manually, otherwise it is left after make distclean
  200. # in a out of source build directory.
  201. regenerate_i18n_ref: i18n i18n_ref
  202. if test '$(USE_NLS)' = 'yes'; then \
  203. cp -p i18n/*.thl i18n_ref; \
  204. fi
  205. translations.pl: i18n/en.thl
  206. $(PERL) manage_i18n.pl -d i18n -o $@ -I . -I $(srcdir) merge
  207. all-local: makeinfo.pl texi2any.pl
  208. # update the po files, and install locally the .mo files for the in
  209. # source tests
  210. check-local: makeinfo.pl texi2any.pl
  211. if test '$(USE_NLS)' = 'yes'; then \
  212. cd $(po_document_dir)/po_document && $(MAKE) $(AM_MAKEFLAGS) update-po; \
  213. fi
  214. rm -rf locales
  215. for file in "$(srcdir)/$(po_document_dir)/po_document/"*.po; do \
  216. basename=`basename "$$file" .po` ; \
  217. $(MKDIR_P) "locales/$$basename/LC_MESSAGES/" ; \
  218. if test '$(USE_NLS)' = 'yes'; then \
  219. $(MSGFMT) "$$file" -o "locales/$$basename/LC_MESSAGES/texi2html_document.mo" ; \
  220. else \
  221. cp -p "$(srcdir)/$(po_document_dir)/po_document/$$basename.mo" "locales/$$basename/LC_MESSAGES/texi2html_document.mo" ; \
  222. fi; \
  223. done
  224. makeinfo.pl texi2any.pl:
  225. -$(LN_S) $(srcdir)/texi2html.pl $@
  226. makeinfo texi2html: texi2any
  227. -$(LN_S) texi2any $@
  228. html-local: texi2html
  229. distclean-local:
  230. -rm -rf locales i18n
  231. install-data-local: i18n
  232. $(MKDIR_P) $(DESTDIR)$(pkgdatadir)/i18n
  233. $(INSTALL_DATA) i18n/*.thl $(DESTDIR)$(pkgdatadir)/i18n
  234. $(MKDIR_P) $(DESTDIR)$(pkgdatadir)/lib/libintl-perl/lib/Locale/Recode \
  235. $(DESTDIR)$(pkgdatadir)/lib/libintl-perl/lib/Locale/RecodeData
  236. $(INSTALL_DATA) $(srcdir)/lib/libintl-perl/lib/Locale/*.pm \
  237. $(DESTDIR)$(pkgdatadir)/lib/libintl-perl/lib/Locale
  238. $(INSTALL_DATA) $(srcdir)/lib/libintl-perl/lib/Locale/Recode/*.pm \
  239. $(DESTDIR)$(pkgdatadir)/lib/libintl-perl/lib/Locale/Recode
  240. $(INSTALL_DATA) $(srcdir)/lib/libintl-perl/lib/Locale/RecodeData/*.pm \
  241. $(DESTDIR)$(pkgdatadir)/lib/libintl-perl/lib/Locale/RecodeData
  242. $(MKDIR_P) $(DESTDIR)$(pkgdatadir)/lib/Unicode-EastAsianWidth/lib/Unicode
  243. $(INSTALL_DATA) $(srcdir)/lib/Unicode-EastAsianWidth/lib/Unicode/EastAsianWidth.pm \
  244. $(DESTDIR)$(pkgdatadir)/lib/Unicode-EastAsianWidth/lib/Unicode
  245. $(MKDIR_P) $(DESTDIR)$(pkgdatadir)/lib/Text-Unidecode/lib/Text/Unidecode
  246. $(INSTALL_DATA) $(srcdir)/lib/Text-Unidecode/lib/Text/Unidecode.pm \
  247. $(DESTDIR)$(pkgdatadir)/lib/Text-Unidecode/lib/Text
  248. $(INSTALL_DATA) $(srcdir)/lib/Text-Unidecode/lib/Text/Unidecode/*.pm \
  249. $(DESTDIR)$(pkgdatadir)/lib/Text-Unidecode/lib/Text/Unidecode
  250. uninstall-local:
  251. rm -rf $(DESTDIR)$(pkgdatadir)/lib/ $(DESTDIR)$(pkgdatadir)/i18n
  252. rm -f $(DESTDIR)$(bindir)/texi2html
  253. rm -f $(DESTDIR)$(bindir)/makeinfo
  254. install-exec-hook:
  255. -$(LN_S) texi2any $(DESTDIR)$(bindir)/texi2html
  256. -$(LN_S) texi2any $(DESTDIR)$(bindir)/makeinfo
  257. dist-hook:
  258. rm -rf `find $(distdir)/lib $(distdir)/i18n_ref -name .svn`
  259. ACLOCAL_AMFLAGS = -I m4
  260. CLEANFILES = texi2html texi2html.temp texi2any makeinfo \
  261. texi2any.pl makeinfo.pl
  262. DISTCLEANFILES = po_messages/Makevars \
  263. po_messages/POTFILES.in \
  264. po_document/Makevars \
  265. po_document/POTFILES.in\
  266. translations.pl\
  267. translations.pl.old