Makefile.am 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. # $Id$
  2. # Makefile.am for texinfo/doc.
  3. #
  4. # Copyright 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012,
  5. # 2013, 2014, 2015, 2016 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. SUBDIRS = tp_api
  15. info_TEXINFOS = texinfo.texi info-stnd.texi
  16. DISTCLEANFILES = texinfo.info* info-stnd.info*
  17. MAKEINFO_ENVIRONMENT = TEXINFO_DEV_SOURCE=1 ; export TEXINFO_DEV_SOURCE ; \
  18. top_srcdir="$(top_srcdir)" ; export top_srcdir ; \
  19. top_builddir="$(top_builddir)" ; export top_builddir ;
  20. MAKEINFO = $(MAKEINFO_ENVIRONMENT) $(PERL) $(top_builddir)/tp/texi2any
  21. # We'd also like to use something like this, but Automake calls
  22. # "install-info" directly.
  23. # INSTALL_INFO = $(top_builddir)/$(native_tools)/util/ginstall-info
  24. TXI_XLATE = txi-ca.tex txi-cs.tex txi-de.tex txi-en.tex txi-es.tex \
  25. txi-fr.tex txi-hu.tex txi-is.tex txi-it.tex txi-ja.tex \
  26. txi-nb.tex txi-nl.tex txi-nn.tex txi-pl.tex txi-pt.tex \
  27. txi-ru.tex txi-sr.tex txi-tr.tex txi-uk.tex
  28. refcard_files = refcard/Makefile refcard/txicmdcheck \
  29. refcard/txirefcard-a4.pdf refcard/txirefcard.pdf \
  30. refcard/txirefcard.tex
  31. # Include our texinfo.tex, not Automake's.
  32. EXTRA_DIST = epsf.tex texinfo.tex \
  33. fdl.texi \
  34. $(man_MANS) $(TXI_XLATE) \
  35. $(refcard_files) texinfo-tex-test.texi \
  36. texinfo-ja.tex short-sample-ja.texi
  37. if INSTALL_WARNINGS
  38. install-data-local:
  39. @echo
  40. @echo "WARNING: If your texmf tree does not already contain"
  41. @echo " up-to-date versions, you must install"
  42. @echo " texinfo.tex and txi-??.tex manually,"
  43. @echo " perhaps in TEXMF/tex/texinfo/,"
  44. @echo " where TEXMF is a root of your TeX tree."
  45. @echo " See doc/README for some considerations."
  46. @echo " You can run make TEXMF=/your/texmf install-tex to do this."
  47. @echo
  48. @echo " You may also need to install epsf.tex in"
  49. @echo " TEXMF/tex/generic/dvips, if your TeX"
  50. @echo " installation did not include it."
  51. endif
  52. texmf_texinfo = $(TEXMF)/tex/texinfo
  53. texmf_dvips = $(TEXMF)/tex/generic/epsf
  54. install-tex:
  55. test -n "$(TEXMF)" || (echo "TEXMF must be set." >&2; exit 1)
  56. $(mkinstalldirs) $(DESTDIR)$(texmf_texinfo) $(DESTDIR)$(texmf_dvips)
  57. $(INSTALL_DATA) $(srcdir)/texinfo.tex $(DESTDIR)$(texmf_texinfo)/texinfo.tex
  58. $(INSTALL_DATA) $(srcdir)/epsf.tex $(DESTDIR)$(texmf_dvips)/epsf.tex
  59. for f in $(TXI_XLATE); do \
  60. $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(texmf_texinfo)/$$f; done
  61. # Do not create info files for distribution.
  62. dist-info:
  63. # Rules for updating the online web pages for the documentation
  64. # using the gendocs.sh script; see
  65. # http://www.gnu.org/prep/maintain/html_node/Invoking-gendocs_002esh.html
  66. #
  67. # Invoke gendocs.sh from a gnulib checkout (outside our tree).
  68. #
  69. gnulib = $(abs_top_srcdir)/../gnulib
  70. gendocs = $(gnulib)/build-aux/gendocs.sh
  71. gendocs_templates = $(gnulib)/doc
  72. gendocs_envvars = GENDOCS_TEMPLATE_DIR=$(gendocs_templates)
  73. #
  74. gendocs_email = bug-texinfo@gnu.org
  75. gendocs_dir_url = /manual/
  76. gendocs_invoke = env $(gendocs_envvars) $(gendocs) --email $(gendocs_email) \
  77. --html '-c TOP_NODE_UP_URL=$(gendocs_dir_url)'
  78. # A nice side effect of using --html is to eliminate the fancy css default;
  79. # otherwise, we could use gendocs_template_min.
  80. #
  81. manual1 = info
  82. manual1_title = "GNU Info manual"
  83. #
  84. manual2 = info-stnd
  85. manual2_title = "GNU standalone info manual"
  86. #
  87. manual3 = texinfo
  88. manual3_title = "GNU Texinfo manual"
  89. #
  90. # We also make a little HTML document for pod2texi script.
  91. pod2texi_pl = $(abs_top_srcdir)/Pod-Simple-Texinfo/pod2texi.pl
  92. # destination directory.
  93. doctemp = wwwtemp
  94. www_target = $(HOME)/gnu/www/texinfo/manual
  95. #
  96. wwwdoc-build:
  97. rm -rf $(doctemp) && mkdir $(doctemp)
  98. cd $(doctemp) \
  99. && ln -s ../*.texi . \
  100. && $(gendocs_invoke) -o $(manual1) $(manual1) $(manual1_title) \
  101. && $(gendocs_invoke) -o $(manual2) $(manual2) $(manual2_title) \
  102. && $(gendocs_invoke) -o $(manual3) $(manual3) $(manual3_title) \
  103. && pod2html $(pod2texi_pl) >pod2texi.html \
  104. && echo "Manuals ready for web distribution under: $(doctemp)/"
  105. #
  106. # At official release, we need to update:
  107. # http://www.gnu.org/software/texinfo/manual/
  108. wwwdoc-install:
  109. cp -arf $(doctemp)/$(manual1) $(doctemp)/$(manual2) \
  110. $(doctemp)/$(manual3) $(doctemp)/pod2texi.html \
  111. $(www_target)
  112. ls -ltu $(www_target)/*/html_node | tail # cvs rm -f obsolete files
  113. # followed by cvs add of new files and cvs commit.