Makefile.am 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. ## Process this file with automake to generate Makefile.in
  2. #
  3. # Copyright (C) 2012-2015 Free Software Foundation, Inc.
  4. #
  5. # This file is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 3 of the License, or
  8. # (at your option) any later version.
  9. #
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. # GNU General Public License for more details.
  14. #
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program; see the file COPYING3. If not see
  17. # <http://www.gnu.org/licenses/>.
  18. #
  19. AUTOMAKE_OPTIONS = cygnus
  20. # What version of the manual you want; "all" includes everything
  21. CONFIG=all
  22. # Options to extract the man page from as.texinfo
  23. MANCONF = -Dman
  24. TEXI2POD = perl $(top_srcdir)/../etc/texi2pod.pl $(AM_MAKEINFOFLAGS)
  25. POD2MAN = pod2man --center="GNU Development Tools" \
  26. --release="binutils-$(VERSION)" --section=1
  27. # List of man pages generated from binutils.texi
  28. man_MANS = \
  29. addr2line.1 \
  30. ar.1 \
  31. dlltool.1 \
  32. nlmconv.1 \
  33. nm.1 \
  34. objcopy.1 \
  35. objdump.1 \
  36. ranlib.1 \
  37. readelf.1 \
  38. size.1 \
  39. strings.1 \
  40. strip.1 \
  41. elfedit.1 \
  42. windres.1 \
  43. windmc.1 \
  44. $(DEMANGLER_NAME).1
  45. info_TEXINFOS = binutils.texi
  46. binutils_TEXI = $(srcdir)/binutils.texi
  47. AM_MAKEINFOFLAGS = -I "$(srcdir)" -I "$(top_srcdir)/../libiberty" \
  48. -I "$(top_srcdir)/../bfd/doc" -I ../../bfd/doc
  49. TEXI2DVI = texi2dvi -I "$(srcdir)" -I "$(top_srcdir)/../libiberty" \
  50. -I "$(top_srcdir)/../bfd/doc" -I ../../bfd/doc
  51. # Man page generation from texinfo
  52. addr2line.1: $(binutils_TEXI) $(binutils_TEXINFOS)
  53. touch $@
  54. -$(TEXI2POD) $(MANCONF) -Daddr2line < $(binutils_TEXI) > addr2line.pod
  55. -($(POD2MAN) addr2line.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
  56. mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
  57. rm -f addr2line.pod
  58. ar.1: $(binutils_TEXI) $(binutils_TEXINFOS)
  59. touch $@
  60. -$(TEXI2POD) $(MANCONF) -Dar < $(binutils_TEXI) > ar.pod
  61. -($(POD2MAN) ar.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
  62. mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
  63. rm -f ar.pod
  64. dlltool.1: $(binutils_TEXI) $(binutils_TEXINFOS)
  65. touch $@
  66. -$(TEXI2POD) $(MANCONF) -Ddlltool < $(binutils_TEXI) > dlltool.pod
  67. -($(POD2MAN) dlltool.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
  68. mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
  69. rm -f dlltool.pod
  70. nlmconv.1: $(binutils_TEXI) $(binutils_TEXINFOS)
  71. touch $@
  72. -$(TEXI2POD) $(MANCONF) -Dnlmconv < $(binutils_TEXI) > nlmconv.pod
  73. -($(POD2MAN) nlmconv.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
  74. mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
  75. rm -f nlmconv.pod
  76. nm.1: $(binutils_TEXI) $(binutils_TEXINFOS)
  77. touch $@
  78. -$(TEXI2POD) $(MANCONF) -Dnm < $(binutils_TEXI) > nm.pod
  79. -($(POD2MAN) nm.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
  80. mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
  81. rm -f nm.pod
  82. objcopy.1: $(binutils_TEXI) $(binutils_TEXINFOS)
  83. touch $@
  84. -$(TEXI2POD) $(MANCONF) -Dobjcopy < $(binutils_TEXI) > objcopy.pod
  85. -($(POD2MAN) objcopy.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
  86. mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
  87. rm -f objcopy.pod
  88. objdump.1: $(binutils_TEXI) $(binutils_TEXINFOS)
  89. touch $@
  90. -$(TEXI2POD) $(MANCONF) -Dobjdump < $(binutils_TEXI) > objdump.pod
  91. -($(POD2MAN) objdump.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
  92. mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
  93. rm -f objdump.pod
  94. ranlib.1: $(binutils_TEXI) $(binutils_TEXINFOS)
  95. touch $@
  96. -$(TEXI2POD) $(MANCONF) -Dranlib < $(binutils_TEXI) > ranlib.pod
  97. -($(POD2MAN) ranlib.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
  98. mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
  99. rm -f ranlib.pod
  100. readelf.1: $(binutils_TEXI) $(binutils_TEXINFOS)
  101. touch $@
  102. -$(TEXI2POD) $(MANCONF) -Dreadelf < $(binutils_TEXI) > readelf.pod
  103. -($(POD2MAN) readelf.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
  104. mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
  105. rm -f readelf.pod
  106. size.1: $(binutils_TEXI) $(binutils_TEXINFOS)
  107. touch $@
  108. -$(TEXI2POD) $(MANCONF) -Dsize < $(binutils_TEXI) > size.pod
  109. -($(POD2MAN) size.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
  110. mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
  111. rm -f size.pod
  112. strings.1: $(binutils_TEXI) $(binutils_TEXINFOS)
  113. touch $@
  114. -$(TEXI2POD) $(MANCONF) -Dstrings < $(binutils_TEXI) > strings.pod
  115. -($(POD2MAN) strings.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
  116. mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
  117. rm -f strings.pod
  118. strip.1: $(binutils_TEXI) $(binutils_TEXINFOS)
  119. touch $@
  120. -$(TEXI2POD) $(MANCONF) -Dstrip < $(binutils_TEXI) > strip.pod
  121. -($(POD2MAN) strip.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
  122. mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
  123. rm -f strip.pod
  124. elfedit.1: $(binutils_TEXI) $(binutils_TEXINFOS)
  125. touch $@
  126. -$(TEXI2POD) $(MANCONF) -Delfedit < $(binutils_TEXI) > elfedit.pod
  127. -($(POD2MAN) elfedit.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
  128. mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
  129. rm -f elfedit.pod
  130. windres.1: $(binutils_TEXI) $(binutils_TEXINFOS)
  131. touch $@
  132. -$(TEXI2POD) $(MANCONF) -Dwindres < $(binutils_TEXI) > windres.pod
  133. -($(POD2MAN) windres.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
  134. mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
  135. rm -f windres.pod
  136. windmc.1: $(binutils_TEXI) $(binutils_TEXINFOS)
  137. touch $@
  138. -$(TEXI2POD) $(MANCONF) -Dwindmc < $(binutils_TEXI) > windmc.pod
  139. -($(POD2MAN) windmc.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
  140. mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
  141. rm -f windmc.pod
  142. cxxfilt.man: $(binutils_TEXI) $(binutils_TEXINFOS)
  143. touch $@
  144. -$(TEXI2POD) $(MANCONF) -Dcxxfilt < $(binutils_TEXI) > $(DEMANGLER_NAME).pod
  145. -($(POD2MAN) $(DEMANGLER_NAME).pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
  146. mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
  147. rm -f $(DEMANGLER_NAME).pod
  148. MOSTLYCLEANFILES = $(DEMANGLER_NAME).1
  149. $(DEMANGLER_NAME).1: cxxfilt.man Makefile
  150. if test -f cxxfilt.man; then \
  151. man=cxxfilt.man; \
  152. else \
  153. man=$(srcdir)/cxxfilt.man; \
  154. fi; \
  155. sed -e 's/@PROGRAM@/$(DEMANGLER_NAME)/' \
  156. -e 's/cxxfilt/$(DEMANGLER_NAME)/' < $$man \
  157. > $(DEMANGLER_NAME).1
  158. # We want install to imply install-info as per GNU standards, despite the
  159. # cygnus option.
  160. install-data-local: install-info
  161. MAINTAINERCLEANFILES = binutils.info
  162. # Automake 1.9 will only build info files in the objdir if they are
  163. # mentioned in DISTCLEANFILES. It doesn't have to be unconditional,
  164. # though, so we use a bogus condition.
  165. if GENINSRC_NEVER
  166. DISTCLEANFILES = binutils.info
  167. endif
  168. # Maintenance
  169. # We need it for the taz target in ../../Makefile.in.
  170. info-local: $(MANS)