local.mk 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. ## Process this file with automake to generate Makefile.in
  2. #
  3. # Copyright (C) 2012-2022 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. # What version of the manual you want; "all" includes everything
  20. CONFIG=all
  21. # Options to extract the man page from as.texinfo
  22. MANCONF = -Dman
  23. TEXI2POD = perl $(top_srcdir)/../etc/texi2pod.pl $(AM_MAKEINFOFLAGS)
  24. POD2MAN = pod2man --center="GNU Development Tools" \
  25. --release="binutils-$(VERSION)" --section=1
  26. # List of man pages generated from binutils.texi
  27. man_MANS = \
  28. %D%/addr2line.1 \
  29. %D%/ar.1 \
  30. %D%/dlltool.1 \
  31. %D%/nm.1 \
  32. %D%/objcopy.1 \
  33. %D%/objdump.1 \
  34. %D%/ranlib.1 \
  35. %D%/readelf.1 \
  36. %D%/size.1 \
  37. %D%/strings.1 \
  38. %D%/strip.1 \
  39. %D%/elfedit.1 \
  40. %D%/windres.1 \
  41. %D%/windmc.1 \
  42. %D%/$(DEMANGLER_NAME).1
  43. info_TEXINFOS = %D%/binutils.texi
  44. binutils_TEXI = $(srcdir)/%D%/binutils.texi
  45. AM_MAKEINFOFLAGS = -I "$(srcdir)/%D%" -I "$(top_srcdir)/../libiberty" \
  46. -I "$(top_srcdir)/../bfd/doc" -I ../bfd/doc \
  47. --no-split
  48. TEXI2DVI = texi2dvi -I "$(srcdir)/%D%" -I "$(top_srcdir)/../libiberty" \
  49. -I "$(top_srcdir)/../bfd/doc" -I ../bfd/doc
  50. # Man page generation from texinfo
  51. %D%/addr2line.1: $(binutils_TEXI) doc/$(am__dirstamp)
  52. $(AM_V_GEN)touch $@
  53. $(AM_V_at)-$(TEXI2POD) $(MANCONF) -Daddr2line < $(binutils_TEXI) > addr2line.pod
  54. $(AM_V_at)-($(POD2MAN) addr2line.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
  55. mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
  56. $(AM_V_at)rm -f addr2line.pod
  57. %D%/ar.1: $(binutils_TEXI) doc/$(am__dirstamp)
  58. $(AM_V_GEN)touch $@
  59. $(AM_V_at)-$(TEXI2POD) $(MANCONF) -Dar < $(binutils_TEXI) > ar.pod
  60. $(AM_V_at)-($(POD2MAN) ar.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
  61. mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
  62. $(AM_V_at)rm -f ar.pod
  63. %D%/dlltool.1: $(binutils_TEXI) doc/$(am__dirstamp)
  64. $(AM_V_GEN)touch $@
  65. $(AM_V_at)-$(TEXI2POD) $(MANCONF) -Ddlltool < $(binutils_TEXI) > dlltool.pod
  66. $(AM_V_at)-($(POD2MAN) dlltool.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
  67. mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
  68. $(AM_V_at)rm -f dlltool.pod
  69. %D%/nm.1: $(binutils_TEXI) doc/$(am__dirstamp)
  70. $(AM_V_GEN)touch $@
  71. $(AM_V_at)-$(TEXI2POD) $(MANCONF) -Dnm < $(binutils_TEXI) > nm.pod
  72. $(AM_V_at)-($(POD2MAN) nm.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
  73. mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
  74. $(AM_V_at)rm -f nm.pod
  75. %D%/objcopy.1: $(binutils_TEXI) doc/$(am__dirstamp)
  76. $(AM_V_GEN)touch $@
  77. $(AM_V_at)-$(TEXI2POD) $(MANCONF) -Dobjcopy < $(binutils_TEXI) > objcopy.pod
  78. $(AM_V_at)-($(POD2MAN) objcopy.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
  79. mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
  80. $(AM_V_at)rm -f objcopy.pod
  81. %D%/objdump.1: $(binutils_TEXI) doc/$(am__dirstamp)
  82. $(AM_V_GEN)touch $@
  83. $(AM_V_at)-$(TEXI2POD) $(MANCONF) -Dobjdump < $(binutils_TEXI) > objdump.pod
  84. $(AM_V_at)-($(POD2MAN) objdump.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
  85. mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
  86. $(AM_V_at)rm -f objdump.pod
  87. %D%/ranlib.1: $(binutils_TEXI) doc/$(am__dirstamp)
  88. $(AM_V_GEN)touch $@
  89. $(AM_V_at)-$(TEXI2POD) $(MANCONF) -Dranlib < $(binutils_TEXI) > ranlib.pod
  90. $(AM_V_at)-($(POD2MAN) ranlib.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
  91. mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
  92. $(AM_V_at)rm -f ranlib.pod
  93. %D%/readelf.1: $(binutils_TEXI) doc/$(am__dirstamp)
  94. $(AM_V_GEN)touch $@
  95. $(AM_V_at)-$(TEXI2POD) $(MANCONF) -Dreadelf < $(binutils_TEXI) > readelf.pod
  96. $(AM_V_at)-($(POD2MAN) readelf.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
  97. mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
  98. $(AM_V_at)rm -f readelf.pod
  99. %D%/size.1: $(binutils_TEXI) doc/$(am__dirstamp)
  100. $(AM_V_GEN)touch $@
  101. $(AM_V_at)-$(TEXI2POD) $(MANCONF) -Dsize < $(binutils_TEXI) > size.pod
  102. $(AM_V_at)-($(POD2MAN) size.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
  103. mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
  104. $(AM_V_at)rm -f size.pod
  105. %D%/strings.1: $(binutils_TEXI) doc/$(am__dirstamp)
  106. $(AM_V_GEN)touch $@
  107. $(AM_V_at)-$(TEXI2POD) $(MANCONF) -Dstrings < $(binutils_TEXI) > strings.pod
  108. $(AM_V_at)-($(POD2MAN) strings.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
  109. mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
  110. $(AM_V_at)rm -f strings.pod
  111. %D%/strip.1: $(binutils_TEXI) doc/$(am__dirstamp)
  112. $(AM_V_GEN)touch $@
  113. $(AM_V_at)-$(TEXI2POD) $(MANCONF) -Dstrip < $(binutils_TEXI) > strip.pod
  114. $(AM_V_at)-($(POD2MAN) strip.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
  115. mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
  116. $(AM_V_at)rm -f strip.pod
  117. %D%/elfedit.1: $(binutils_TEXI) doc/$(am__dirstamp)
  118. $(AM_V_GEN)touch $@
  119. $(AM_V_at)-$(TEXI2POD) $(MANCONF) -Delfedit < $(binutils_TEXI) > elfedit.pod
  120. $(AM_V_at)-($(POD2MAN) elfedit.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
  121. mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
  122. $(AM_V_at)rm -f elfedit.pod
  123. %D%/windres.1: $(binutils_TEXI) doc/$(am__dirstamp)
  124. $(AM_V_GEN)touch $@
  125. $(AM_V_at)-$(TEXI2POD) $(MANCONF) -Dwindres < $(binutils_TEXI) > windres.pod
  126. $(AM_V_at)-($(POD2MAN) windres.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
  127. mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
  128. $(AM_V_at)rm -f windres.pod
  129. %D%/windmc.1: $(binutils_TEXI) doc/$(am__dirstamp)
  130. $(AM_V_GEN)touch $@
  131. $(AM_V_at)-$(TEXI2POD) $(MANCONF) -Dwindmc < $(binutils_TEXI) > windmc.pod
  132. $(AM_V_at)-($(POD2MAN) windmc.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
  133. mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
  134. $(AM_V_at)rm -f windmc.pod
  135. %D%/cxxfilt.man: $(binutils_TEXI) doc/$(am__dirstamp)
  136. $(AM_V_GEN)touch $@
  137. $(AM_V_at)-$(TEXI2POD) $(MANCONF) -Dcxxfilt < $(binutils_TEXI) > $(DEMANGLER_NAME).pod
  138. $(AM_V_at)-($(POD2MAN) $(DEMANGLER_NAME).pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
  139. mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
  140. $(AM_V_at)rm -f $(DEMANGLER_NAME).pod
  141. MAINTAINERCLEANFILES += $(man_MANS) %D%/binutils.info %D%/cxxfilt.man
  142. %D%/$(DEMANGLER_NAME).1: %D%/cxxfilt.man Makefile doc/$(am__dirstamp)
  143. $(AM_V_GEN)if test -f %D%/cxxfilt.man; then \
  144. man=%D%/cxxfilt.man; \
  145. else \
  146. man=$(srcdir)/%D%/cxxfilt.man; \
  147. fi; \
  148. sed -e 's/@PROGRAM@/$(DEMANGLER_NAME)/' \
  149. -e 's/cxxfilt/$(DEMANGLER_NAME)/' < $$man \
  150. > %D%/$(DEMANGLER_NAME).1
  151. html-local: %D%/binutils/index.html
  152. %D%/binutils/index.html: %D%/binutils.texi $(binutils_TEXINFOS)
  153. $(AM_V_GEN)$(MAKEINFOHTML) $(AM_MAKEINFOHTMLFLAGS) $(MAKEINFOFLAGS) \
  154. --split=node -I$(srcdir) $(srcdir)/%D%/binutils.texi
  155. # Maintenance
  156. # We need it for the taz target in ../Makefile.in.
  157. info-local: $(MANS)