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