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