Makefile.am 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. # $Id$
  2. # Makefile.am for texinfo/info.
  3. #
  4. # Copyright 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 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. # Use `ginfo' for building to avoid confusion with the standard `info'
  15. # target. Removes the `g' in the install rule before applying any
  16. # user-specified name transformations.
  17. bin_PROGRAMS = ginfo
  18. transform = s/ginfo/info/; $(program_transform_name)
  19. AM_CPPFLAGS = \
  20. -I$(top_srcdir) \
  21. -I$(top_srcdir)/gnulib/lib \
  22. -I$(top_builddir)/gnulib/lib \
  23. -DLOCALEDIR=\"$(datadir)/locale\" \
  24. -DINFODIR=\"$(infodir)\" \
  25. -DINFODIR2=\"$(datadir)/info\"
  26. LDADD = $(top_builddir)/gnulib/lib/libgnu.a $(TERMLIBS) $(LIBINTL) $(LIBICONV)
  27. EXTRA_DIST = pcterm.c
  28. ginfo_SOURCES = dir.c display.c display.h doc.h dribble.c dribble.h \
  29. echo-area.c echo-area.h \
  30. filesys.c filesys.h footnotes.c footnotes.h indices.c indices.h \
  31. info-utils.c info-utils.h info.c info.h infodoc.c infokey.c \
  32. infomap.c infomap.h infopath.c m-x.c man.c man.h nodemenu.c \
  33. nodes.c nodes.h search.c search.h session.c session.h signals.c signals.h \
  34. tag.c tag.h termdep.h terminal.c terminal.h tilde.c tilde.h \
  35. variables.c variables.h window.c window.h
  36. nodist_ginfo_SOURCES = doc.c funs.h
  37. # The files `doc.c' and `funs.h' are created by ./makedoc run over the
  38. # source files which contain DECLARE_INFO_COMMAND. `funs.h' is a header file
  39. # listing the functions found. `doc.c' is a structure containing pointers
  40. # to those functions along with completable names and documentation strings.
  41. #
  42. generated_sources = doc.c funs.h
  43. # We need a linear ordering to prevent race condition in parallel make.
  44. # See the node ``(automake)Multiple Outputs'' for an explanation.
  45. # Make sure this matches with order in which makedoc.c creates these
  46. # files.
  47. doc.c: funs.h
  48. # These files are not distributed.
  49. DISTCLEANFILES = $(generated_sources)
  50. noinst_PROGRAMS = makedoc
  51. makedoc_SOURCES = makedoc.c
  52. # Files with Info commands defined that makedoc should read.
  53. cmd_sources = $(srcdir)/session.c $(srcdir)/echo-area.c $(srcdir)/infodoc.c \
  54. $(srcdir)/m-x.c $(srcdir)/indices.c $(srcdir)/nodemenu.c \
  55. $(srcdir)/footnotes.c $(srcdir)/variables.c
  56. # Make the target only funs.h even though we create all the
  57. # $(generated_sources) so that parallel makes won't do the rm && makedoc
  58. # more than once.
  59. funs.h: makedoc$(EXEEXT) $(cmd_sources)
  60. rm -f $(generated_sources)
  61. $(top_builddir)/$(native_tools)/info/makedoc $(cmd_sources)
  62. # The following hack is necessary to hint make before the automatic
  63. # dependencies are built.
  64. BUILT_SOURCES = funs.h
  65. # Test suite
  66. if have_ptys
  67. check_PROGRAMS = pseudotty
  68. pseudotty_SOURCES = pseudotty.c
  69. endif
  70. TESTS = \
  71. t/file.sh \
  72. t/file-node.sh \
  73. t/file-nodes.sh \
  74. t/file-node-with-dot.sh \
  75. t/file-index.sh \
  76. t/file-index-colons.sh \
  77. t/file-file-with-dot.sh \
  78. t/no-file.sh \
  79. t/node-no-file.sh \
  80. t/split.sh \
  81. t/relative-path.sh \
  82. t/file-relative-path.sh \
  83. t/dir.sh \
  84. t/dir-file.sh \
  85. t/dir-file-sloppily.sh \
  86. t/dir-merge.sh \
  87. t/dir-nondir.sh \
  88. t/dir-no-file.sh \
  89. t/dir-file-menu.sh \
  90. t/dir-file-no-menu.sh \
  91. t/dir-file-node.sh \
  92. t/dir-file-index.sh \
  93. t/dir-3-menus.sh \
  94. t/dir-menus-sloppily.sh \
  95. t/where-dir-file.sh \
  96. t/dir-dangling-entry.sh \
  97. t/dir-entry-to-subdir.sh \
  98. t/spec-file-node.sh \
  99. t/spec-no-node.sh \
  100. t/spec-menu.sh \
  101. t/all-only.sh \
  102. t/empty.sh \
  103. t/cr-tag-table.sh \
  104. t/inc-sea-bs-after-strip-cr.sh \
  105. t/tab.sh \
  106. t/tab-argument.sh \
  107. t/tab-no-xref.sh \
  108. t/tab-skip-node.sh \
  109. t/xref-across-lines.sh \
  110. t/body-start.sh \
  111. t/end-of-line.sh \
  112. t/goal-column.sh \
  113. t/star-note-non-whitespace.sh \
  114. t/c-u-m-x-scroll-forward.sh \
  115. t/last-no-history.sh \
  116. t/split-footnotes.sh \
  117. t/window-split-dir.sh \
  118. t/last-node-not-top-level.sh \
  119. t/adjust-anchors.sh \
  120. t/xref-to-anchor.sh \
  121. t/search-after-tag.sh \
  122. t/split-file-menu.sh \
  123. t/search-split-after-index.sh \
  124. t/index.sh \
  125. t/no-index.sh \
  126. t/index-apropos.sh \
  127. t/index-search.sh \
  128. t/index-completing.sh \
  129. t/split-index.sh \
  130. t/index-long-nodeline.sh \
  131. t/empty-infopath.sh \
  132. t/menu-sequence.sh \
  133. t/relative-reference.sh \
  134. t/resize-in-completions.sh \
  135. t/replace-viewed.sh \
  136. t/search-skip-screen.sh \
  137. t/search-empty.sh \
  138. t/inc-sea-forward.sh \
  139. t/inc-sea-forward-nonregex.sh \
  140. t/inc-sea-insensitive.sh \
  141. t/inc-sea-history.sh \
  142. t/gc-split.sh \
  143. t/anchor-positions.sh \
  144. t/quoted-label-as-target.sh \
  145. t/quoted-target.sh \
  146. t/quoted-label-and-target.sh \
  147. t/quoted-manual-in-target.sh \
  148. t/quoted-manual-in-label.sh \
  149. t/goto-quoted.sh \
  150. t/next-quoted.sh \
  151. t/help.sh
  152. EXTRA_DIST += $(TESTS) $(XFAIL_TESTS) \
  153. t/README t/infodir \
  154. t/Init-inter.inc t/Init-test.inc t/Timeout-test.inc \
  155. t/Infokey-config t/node-target
  156. dist-hook:
  157. rm -rf `find $(distdir)/t/infodir -name '*~'`