local.mk 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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.texi
  22. MANCONF = -Dman
  23. TEXI2POD = perl $(BASEDIR)/etc/texi2pod.pl $(AM_MAKEINFOFLAGS)
  24. POD2MAN = pod2man --center="GNU Development Tools" \
  25. --release="binutils-$(VERSION)" --section=1
  26. man_MANS = %D%/as.1
  27. info_TEXINFOS = %D%/as.texi
  28. %C%_as_TEXINFOS = %D%/asconfig.texi $(CPU_DOCS)
  29. AM_MAKEINFOFLAGS = -I "$(srcdir)/%D%" -I %D% -I "$(srcdir)/../libiberty" \
  30. -I "$(srcdir)/../bfd/doc" -I ../bfd/doc \
  31. --no-split
  32. TEXI2DVI = texi2dvi -I "$(srcdir)/%D%" -I %D% -I "$(srcdir)/../libiberty" \
  33. -I "$(srcdir)/../bfd/doc" -I ../bfd/doc
  34. %D%/asconfig.texi: %D%/$(CONFIG).texi %D%/$(am__dirstamp)
  35. $(AM_V_at)rm -f %D%/asconfig.texi
  36. $(AM_V_GEN)cp $(srcdir)/%D%/$(CONFIG).texi %D%/asconfig.texi
  37. $(AM_V_at)chmod u+w %D%/asconfig.texi
  38. CPU_DOCS = \
  39. %D%/c-aarch64.texi \
  40. %D%/c-alpha.texi \
  41. %D%/c-arc.texi \
  42. %D%/c-arm.texi \
  43. %D%/c-avr.texi \
  44. %D%/c-bfin.texi \
  45. %D%/c-bpf.texi \
  46. %D%/c-cr16.texi \
  47. %D%/c-cris.texi \
  48. %D%/c-csky.texi \
  49. %D%/c-d10v.texi \
  50. %D%/c-epiphany.texi \
  51. %D%/c-h8300.texi \
  52. %D%/c-hppa.texi \
  53. %D%/c-i386.texi \
  54. %D%/c-ip2k.texi \
  55. %D%/c-lm32.texi \
  56. %D%/c-m32c.texi \
  57. %D%/c-m32r.texi \
  58. %D%/c-m68hc11.texi \
  59. %D%/c-m68k.texi \
  60. %D%/c-s12z.texi \
  61. %D%/c-metag.texi \
  62. %D%/c-microblaze.texi \
  63. %D%/c-mips.texi \
  64. %D%/c-mmix.texi \
  65. %D%/c-mt.texi \
  66. %D%/c-msp430.texi \
  67. %D%/c-nios2.texi \
  68. %D%/c-nds32.texi \
  69. %D%/c-ns32k.texi \
  70. %D%/c-or1k.texi \
  71. %D%/c-pdp11.texi \
  72. %D%/c-pj.texi \
  73. %D%/c-ppc.texi \
  74. %D%/c-pru.texi \
  75. %D%/c-rl78.texi \
  76. %D%/c-riscv.texi \
  77. %D%/c-rx.texi \
  78. %D%/c-s390.texi \
  79. %D%/c-score.texi \
  80. %D%/c-sh.texi \
  81. %D%/c-sparc.texi \
  82. %D%/c-tic54x.texi \
  83. %D%/c-tic6x.texi \
  84. %D%/c-tilegx.texi \
  85. %D%/c-tilepro.texi \
  86. %D%/c-v850.texi \
  87. %D%/c-vax.texi \
  88. %D%/c-visium.texi \
  89. %D%/c-xgate.texi \
  90. %D%/c-xstormy16.texi \
  91. %D%/c-xtensa.texi \
  92. %D%/c-z80.texi \
  93. %D%/c-z8k.texi
  94. # This one isn't ready for prime time yet. Not even a little bit.
  95. noinst_TEXINFOS = %D%/internals.texi
  96. MAINTAINERCLEANFILES += %D%/asconfig.texi
  97. # Maintenance
  98. # We need it for the taz target in ../Makefile.in.
  99. info-local: $(MANS)
  100. # Build the man page from the texinfo file
  101. # The sed command removes the no-adjust Nroff command so that
  102. # the man output looks standard.
  103. %D%/as.1: $(srcdir)/%D%/as.texi %D%/asconfig.texi $(CPU_DOCS) %D%/$(am__dirstamp)
  104. $(AM_V_GEN)touch $@
  105. $(AM_V_at)-$(TEXI2POD) $(MANCONF) < $(srcdir)/%D%/as.texi > %D%/as.pod
  106. $(AM_V_at)-($(POD2MAN) %D%/as.pod | \
  107. sed -e '/^.if n .na/d' > $@.T$$$$ && \
  108. mv -f $@.T$$$$ $@) || \
  109. (rm -f $@.T$$$$ && exit 1)
  110. $(AM_V_at)rm -f %D%/as.pod
  111. html-local: %D%/as/index.html
  112. %D%/as/index.html: %D%/as.texi $(%C%_as_TEXINFOS) %D%/$(am__dirstamp)
  113. $(AM_V_GEN)$(MAKEINFOHTML) $(AM_MAKEINFOHTMLFLAGS) $(MAKEINFOFLAGS) \
  114. --split=node -I$(srcdir)/%D% -o %D%/as $(srcdir)/%D%/as.texi
  115. MAINTAINERCLEANFILES += %D%/as.info