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