1## Process this file with automake to generate Makefile.in 2# 3# Copyright (C) 2012-2017 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 = cygnus 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 nlmconv.1 \ 39 nm.1 \ 40 objcopy.1 \ 41 objdump.1 \ 42 ranlib.1 \ 43 readelf.1 \ 44 size.1 \ 45 strings.1 \ 46 strip.1 \ 47 elfedit.1 \ 48 windres.1 \ 49 windmc.1 \ 50 $(DEMANGLER_NAME).1 51 52info_TEXINFOS = binutils.texi 53binutils_TEXI = $(srcdir)/binutils.texi 54 55AM_MAKEINFOFLAGS = -I "$(srcdir)" -I "$(top_srcdir)/../libiberty" \ 56 -I "$(top_srcdir)/../bfd/doc" -I ../../bfd/doc 57TEXI2DVI = texi2dvi -I "$(srcdir)" -I "$(top_srcdir)/../libiberty" \ 58 -I "$(top_srcdir)/../bfd/doc" -I ../../bfd/doc 59 60# Man page generation from texinfo 61addr2line.1: $(binutils_TEXI) $(binutils_TEXINFOS) 62 touch $@ 63 -$(TEXI2POD) $(MANCONF) -Daddr2line < $(binutils_TEXI) > addr2line.pod 64 -($(POD2MAN) addr2line.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \ 65 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1) 66 rm -f addr2line.pod 67 68ar.1: $(binutils_TEXI) $(binutils_TEXINFOS) 69 touch $@ 70 -$(TEXI2POD) $(MANCONF) -Dar < $(binutils_TEXI) > ar.pod 71 -($(POD2MAN) ar.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \ 72 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1) 73 rm -f ar.pod 74 75dlltool.1: $(binutils_TEXI) $(binutils_TEXINFOS) 76 touch $@ 77 -$(TEXI2POD) $(MANCONF) -Ddlltool < $(binutils_TEXI) > dlltool.pod 78 -($(POD2MAN) dlltool.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \ 79 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1) 80 rm -f dlltool.pod 81 82nlmconv.1: $(binutils_TEXI) $(binutils_TEXINFOS) 83 touch $@ 84 -$(TEXI2POD) $(MANCONF) -Dnlmconv < $(binutils_TEXI) > nlmconv.pod 85 -($(POD2MAN) nlmconv.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \ 86 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1) 87 rm -f nlmconv.pod 88 89nm.1: $(binutils_TEXI) $(binutils_TEXINFOS) 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) $(binutils_TEXINFOS) 97 touch $@ 98 -$(TEXI2POD) $(MANCONF) -Dobjcopy < $(binutils_TEXI) > objcopy.pod 99 -($(POD2MAN) objcopy.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \ 100 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1) 101 rm -f objcopy.pod 102 103objdump.1: $(binutils_TEXI) $(binutils_TEXINFOS) 104 touch $@ 105 -$(TEXI2POD) $(MANCONF) -Dobjdump < $(binutils_TEXI) > objdump.pod 106 -($(POD2MAN) objdump.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \ 107 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1) 108 rm -f objdump.pod 109 110ranlib.1: $(binutils_TEXI) $(binutils_TEXINFOS) 111 touch $@ 112 -$(TEXI2POD) $(MANCONF) -Dranlib < $(binutils_TEXI) > ranlib.pod 113 -($(POD2MAN) ranlib.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \ 114 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1) 115 rm -f ranlib.pod 116 117readelf.1: $(binutils_TEXI) $(binutils_TEXINFOS) 118 touch $@ 119 -$(TEXI2POD) $(MANCONF) -Dreadelf < $(binutils_TEXI) > readelf.pod 120 -($(POD2MAN) readelf.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \ 121 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1) 122 rm -f readelf.pod 123 124size.1: $(binutils_TEXI) $(binutils_TEXINFOS) 125 touch $@ 126 -$(TEXI2POD) $(MANCONF) -Dsize < $(binutils_TEXI) > size.pod 127 -($(POD2MAN) size.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \ 128 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1) 129 rm -f size.pod 130 131strings.1: $(binutils_TEXI) $(binutils_TEXINFOS) 132 touch $@ 133 -$(TEXI2POD) $(MANCONF) -Dstrings < $(binutils_TEXI) > strings.pod 134 -($(POD2MAN) strings.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \ 135 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1) 136 rm -f strings.pod 137 138strip.1: $(binutils_TEXI) $(binutils_TEXINFOS) 139 touch $@ 140 -$(TEXI2POD) $(MANCONF) -Dstrip < $(binutils_TEXI) > strip.pod 141 -($(POD2MAN) strip.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \ 142 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1) 143 rm -f strip.pod 144 145elfedit.1: $(binutils_TEXI) $(binutils_TEXINFOS) 146 touch $@ 147 -$(TEXI2POD) $(MANCONF) -Delfedit < $(binutils_TEXI) > elfedit.pod 148 -($(POD2MAN) elfedit.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \ 149 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1) 150 rm -f elfedit.pod 151 152windres.1: $(binutils_TEXI) $(binutils_TEXINFOS) 153 touch $@ 154 -$(TEXI2POD) $(MANCONF) -Dwindres < $(binutils_TEXI) > windres.pod 155 -($(POD2MAN) windres.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \ 156 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1) 157 rm -f windres.pod 158 159windmc.1: $(binutils_TEXI) $(binutils_TEXINFOS) 160 touch $@ 161 -$(TEXI2POD) $(MANCONF) -Dwindmc < $(binutils_TEXI) > windmc.pod 162 -($(POD2MAN) windmc.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \ 163 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1) 164 rm -f windmc.pod 165 166cxxfilt.man: $(binutils_TEXI) $(binutils_TEXINFOS) 167 touch $@ 168 -$(TEXI2POD) $(MANCONF) -Dcxxfilt < $(binutils_TEXI) > $(DEMANGLER_NAME).pod 169 -($(POD2MAN) $(DEMANGLER_NAME).pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \ 170 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1) 171 rm -f $(DEMANGLER_NAME).pod 172 173MOSTLYCLEANFILES = $(DEMANGLER_NAME).1 174 175$(DEMANGLER_NAME).1: cxxfilt.man Makefile 176 if test -f cxxfilt.man; then \ 177 man=cxxfilt.man; \ 178 else \ 179 man=$(srcdir)/cxxfilt.man; \ 180 fi; \ 181 sed -e 's/@PROGRAM@/$(DEMANGLER_NAME)/' \ 182 -e 's/cxxfilt/$(DEMANGLER_NAME)/' < $$man \ 183 > $(DEMANGLER_NAME).1 184 185# We want install to imply install-info as per GNU standards, despite the 186# cygnus option. 187install-data-local: install-info 188 189MAINTAINERCLEANFILES = binutils.info 190 191# Automake 1.9 will only build info files in the objdir if they are 192# mentioned in DISTCLEANFILES. It doesn't have to be unconditional, 193# though, so we use a bogus condition. 194if GENINSRC_NEVER 195DISTCLEANFILES = binutils.info 196endif 197 198# Maintenance 199 200# We need it for the taz target in ../../Makefile.in. 201info-local: $(MANS) 202