2001-06-19 19:57:29 +08:00
|
|
|
## Process this file with automake to generate Makefile.in
|
2012-12-18 00:56:12 +08:00
|
|
|
#
|
2017-01-02 11:36:43 +08:00
|
|
|
# Copyright (C) 2012-2017 Free Software Foundation, Inc.
|
2012-12-18 00:56:12 +08:00
|
|
|
#
|
|
|
|
# This file is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; see the file COPYING3. If not see
|
|
|
|
# <http://www.gnu.org/licenses/>.
|
|
|
|
#
|
2001-06-19 19:57:29 +08:00
|
|
|
|
|
|
|
AUTOMAKE_OPTIONS = cygnus
|
|
|
|
|
|
|
|
# What version of the manual you want; "all" includes everything
|
|
|
|
CONFIG=all
|
|
|
|
|
|
|
|
# Options to extract the man page from as.texinfo
|
|
|
|
MANCONF = -Dman
|
|
|
|
|
2006-05-02 22:20:46 +08:00
|
|
|
TEXI2POD = perl $(top_srcdir)/../etc/texi2pod.pl $(AM_MAKEINFOFLAGS)
|
2001-06-19 19:57:29 +08:00
|
|
|
|
2001-08-01 23:54:41 +08:00
|
|
|
POD2MAN = pod2man --center="GNU Development Tools" \
|
|
|
|
--release="binutils-$(VERSION)" --section=1
|
2001-06-19 19:57:29 +08:00
|
|
|
|
|
|
|
# List of man pages generated from binutils.texi
|
|
|
|
man_MANS = \
|
|
|
|
addr2line.1 \
|
|
|
|
ar.1 \
|
|
|
|
dlltool.1 \
|
|
|
|
nlmconv.1 \
|
|
|
|
nm.1 \
|
|
|
|
objcopy.1 \
|
|
|
|
objdump.1 \
|
|
|
|
ranlib.1 \
|
|
|
|
readelf.1 \
|
|
|
|
size.1 \
|
|
|
|
strings.1 \
|
|
|
|
strip.1 \
|
2010-01-07 00:52:15 +08:00
|
|
|
elfedit.1 \
|
2001-06-19 19:57:29 +08:00
|
|
|
windres.1 \
|
2007-06-19 21:24:33 +08:00
|
|
|
windmc.1 \
|
2001-06-19 19:57:29 +08:00
|
|
|
$(DEMANGLER_NAME).1
|
|
|
|
|
|
|
|
info_TEXINFOS = binutils.texi
|
2005-05-16 02:19:45 +08:00
|
|
|
binutils_TEXI = $(srcdir)/binutils.texi
|
2001-06-19 19:57:29 +08:00
|
|
|
|
2007-03-15 22:17:20 +08:00
|
|
|
AM_MAKEINFOFLAGS = -I "$(srcdir)" -I "$(top_srcdir)/../libiberty" \
|
2007-08-13 09:53:01 +08:00
|
|
|
-I "$(top_srcdir)/../bfd/doc" -I ../../bfd/doc
|
2007-03-15 22:17:20 +08:00
|
|
|
TEXI2DVI = texi2dvi -I "$(srcdir)" -I "$(top_srcdir)/../libiberty" \
|
2007-08-13 09:53:01 +08:00
|
|
|
-I "$(top_srcdir)/../bfd/doc" -I ../../bfd/doc
|
2001-06-19 19:57:29 +08:00
|
|
|
|
|
|
|
# Man page generation from texinfo
|
2006-05-19 21:10:58 +08:00
|
|
|
addr2line.1: $(binutils_TEXI) $(binutils_TEXINFOS)
|
2001-06-19 19:57:29 +08:00
|
|
|
touch $@
|
2003-11-28 12:58:41 +08:00
|
|
|
-$(TEXI2POD) $(MANCONF) -Daddr2line < $(binutils_TEXI) > addr2line.pod
|
2001-07-04 00:35:34 +08:00
|
|
|
-($(POD2MAN) addr2line.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
|
2001-06-19 19:57:29 +08:00
|
|
|
mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
|
2001-07-04 00:35:34 +08:00
|
|
|
rm -f addr2line.pod
|
2001-06-19 19:57:29 +08:00
|
|
|
|
2006-05-19 21:10:58 +08:00
|
|
|
ar.1: $(binutils_TEXI) $(binutils_TEXINFOS)
|
2001-06-19 19:57:29 +08:00
|
|
|
touch $@
|
2003-11-28 12:58:41 +08:00
|
|
|
-$(TEXI2POD) $(MANCONF) -Dar < $(binutils_TEXI) > ar.pod
|
2001-07-04 00:35:34 +08:00
|
|
|
-($(POD2MAN) ar.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
|
2001-06-19 19:57:29 +08:00
|
|
|
mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
|
2001-07-04 00:35:34 +08:00
|
|
|
rm -f ar.pod
|
2001-06-19 19:57:29 +08:00
|
|
|
|
2006-05-19 21:10:58 +08:00
|
|
|
dlltool.1: $(binutils_TEXI) $(binutils_TEXINFOS)
|
2001-06-19 19:57:29 +08:00
|
|
|
touch $@
|
2003-11-28 12:58:41 +08:00
|
|
|
-$(TEXI2POD) $(MANCONF) -Ddlltool < $(binutils_TEXI) > dlltool.pod
|
2001-07-04 00:35:34 +08:00
|
|
|
-($(POD2MAN) dlltool.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
|
2001-06-19 19:57:29 +08:00
|
|
|
mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
|
2001-07-04 00:35:34 +08:00
|
|
|
rm -f dlltool.pod
|
2001-06-19 19:57:29 +08:00
|
|
|
|
2006-05-19 21:10:58 +08:00
|
|
|
nlmconv.1: $(binutils_TEXI) $(binutils_TEXINFOS)
|
2001-06-19 19:57:29 +08:00
|
|
|
touch $@
|
2003-11-28 12:58:41 +08:00
|
|
|
-$(TEXI2POD) $(MANCONF) -Dnlmconv < $(binutils_TEXI) > nlmconv.pod
|
2001-07-04 00:35:34 +08:00
|
|
|
-($(POD2MAN) nlmconv.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
|
2001-06-19 19:57:29 +08:00
|
|
|
mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
|
2001-07-04 00:35:34 +08:00
|
|
|
rm -f nlmconv.pod
|
2001-06-19 19:57:29 +08:00
|
|
|
|
2006-05-19 21:10:58 +08:00
|
|
|
nm.1: $(binutils_TEXI) $(binutils_TEXINFOS)
|
2001-06-19 19:57:29 +08:00
|
|
|
touch $@
|
2003-11-28 12:58:41 +08:00
|
|
|
-$(TEXI2POD) $(MANCONF) -Dnm < $(binutils_TEXI) > nm.pod
|
2001-07-04 00:35:34 +08:00
|
|
|
-($(POD2MAN) nm.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
|
2001-06-19 19:57:29 +08:00
|
|
|
mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
|
2001-07-04 00:35:34 +08:00
|
|
|
rm -f nm.pod
|
2001-06-19 19:57:29 +08:00
|
|
|
|
2006-05-19 21:10:58 +08:00
|
|
|
objcopy.1: $(binutils_TEXI) $(binutils_TEXINFOS)
|
2001-06-19 19:57:29 +08:00
|
|
|
touch $@
|
2003-11-28 12:58:41 +08:00
|
|
|
-$(TEXI2POD) $(MANCONF) -Dobjcopy < $(binutils_TEXI) > objcopy.pod
|
2001-07-04 00:35:34 +08:00
|
|
|
-($(POD2MAN) objcopy.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
|
2001-06-19 19:57:29 +08:00
|
|
|
mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
|
2001-07-04 00:35:34 +08:00
|
|
|
rm -f objcopy.pod
|
2001-06-19 19:57:29 +08:00
|
|
|
|
2006-05-19 21:10:58 +08:00
|
|
|
objdump.1: $(binutils_TEXI) $(binutils_TEXINFOS)
|
2001-06-19 19:57:29 +08:00
|
|
|
touch $@
|
2003-11-28 12:58:41 +08:00
|
|
|
-$(TEXI2POD) $(MANCONF) -Dobjdump < $(binutils_TEXI) > objdump.pod
|
2001-07-04 00:35:34 +08:00
|
|
|
-($(POD2MAN) objdump.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
|
2001-06-19 19:57:29 +08:00
|
|
|
mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
|
2001-07-04 00:35:34 +08:00
|
|
|
rm -f objdump.pod
|
2001-06-19 19:57:29 +08:00
|
|
|
|
2006-05-19 21:10:58 +08:00
|
|
|
ranlib.1: $(binutils_TEXI) $(binutils_TEXINFOS)
|
2001-06-19 19:57:29 +08:00
|
|
|
touch $@
|
2003-11-28 12:58:41 +08:00
|
|
|
-$(TEXI2POD) $(MANCONF) -Dranlib < $(binutils_TEXI) > ranlib.pod
|
2001-07-04 00:35:34 +08:00
|
|
|
-($(POD2MAN) ranlib.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
|
2001-06-19 19:57:29 +08:00
|
|
|
mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
|
2001-07-04 00:35:34 +08:00
|
|
|
rm -f ranlib.pod
|
2001-06-19 19:57:29 +08:00
|
|
|
|
2006-05-19 21:10:58 +08:00
|
|
|
readelf.1: $(binutils_TEXI) $(binutils_TEXINFOS)
|
2001-06-19 19:57:29 +08:00
|
|
|
touch $@
|
2003-11-28 12:58:41 +08:00
|
|
|
-$(TEXI2POD) $(MANCONF) -Dreadelf < $(binutils_TEXI) > readelf.pod
|
2001-07-04 00:35:34 +08:00
|
|
|
-($(POD2MAN) readelf.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
|
2001-06-19 19:57:29 +08:00
|
|
|
mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
|
2001-07-04 00:35:34 +08:00
|
|
|
rm -f readelf.pod
|
2001-06-19 19:57:29 +08:00
|
|
|
|
2006-05-19 21:10:58 +08:00
|
|
|
size.1: $(binutils_TEXI) $(binutils_TEXINFOS)
|
2001-06-19 19:57:29 +08:00
|
|
|
touch $@
|
2003-11-28 12:58:41 +08:00
|
|
|
-$(TEXI2POD) $(MANCONF) -Dsize < $(binutils_TEXI) > size.pod
|
2001-07-04 00:35:34 +08:00
|
|
|
-($(POD2MAN) size.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
|
2001-06-19 19:57:29 +08:00
|
|
|
mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
|
2001-07-04 00:35:34 +08:00
|
|
|
rm -f size.pod
|
2001-06-19 19:57:29 +08:00
|
|
|
|
2006-05-19 21:10:58 +08:00
|
|
|
strings.1: $(binutils_TEXI) $(binutils_TEXINFOS)
|
2001-06-19 19:57:29 +08:00
|
|
|
touch $@
|
2003-11-28 12:58:41 +08:00
|
|
|
-$(TEXI2POD) $(MANCONF) -Dstrings < $(binutils_TEXI) > strings.pod
|
2001-07-04 00:35:34 +08:00
|
|
|
-($(POD2MAN) strings.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
|
2001-06-19 19:57:29 +08:00
|
|
|
mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
|
2001-07-04 00:35:34 +08:00
|
|
|
rm -f strings.pod
|
2001-06-19 19:57:29 +08:00
|
|
|
|
2006-05-19 21:10:58 +08:00
|
|
|
strip.1: $(binutils_TEXI) $(binutils_TEXINFOS)
|
2001-06-19 19:57:29 +08:00
|
|
|
touch $@
|
2003-11-28 12:58:41 +08:00
|
|
|
-$(TEXI2POD) $(MANCONF) -Dstrip < $(binutils_TEXI) > strip.pod
|
2001-07-04 00:35:34 +08:00
|
|
|
-($(POD2MAN) strip.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
|
2001-06-19 19:57:29 +08:00
|
|
|
mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
|
2001-07-04 00:35:34 +08:00
|
|
|
rm -f strip.pod
|
2001-06-19 19:57:29 +08:00
|
|
|
|
2010-01-07 00:52:15 +08:00
|
|
|
elfedit.1: $(binutils_TEXI) $(binutils_TEXINFOS)
|
|
|
|
touch $@
|
|
|
|
-$(TEXI2POD) $(MANCONF) -Delfedit < $(binutils_TEXI) > elfedit.pod
|
|
|
|
-($(POD2MAN) elfedit.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
|
|
|
|
mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
|
|
|
|
rm -f elfedit.pod
|
|
|
|
|
2006-05-19 21:10:58 +08:00
|
|
|
windres.1: $(binutils_TEXI) $(binutils_TEXINFOS)
|
2001-06-19 19:57:29 +08:00
|
|
|
touch $@
|
2003-11-28 12:58:41 +08:00
|
|
|
-$(TEXI2POD) $(MANCONF) -Dwindres < $(binutils_TEXI) > windres.pod
|
2001-07-04 00:35:34 +08:00
|
|
|
-($(POD2MAN) windres.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
|
2001-06-19 19:57:29 +08:00
|
|
|
mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
|
2001-07-04 00:35:34 +08:00
|
|
|
rm -f windres.pod
|
2001-06-19 19:57:29 +08:00
|
|
|
|
2007-06-19 21:24:33 +08:00
|
|
|
windmc.1: $(binutils_TEXI) $(binutils_TEXINFOS)
|
|
|
|
touch $@
|
|
|
|
-$(TEXI2POD) $(MANCONF) -Dwindmc < $(binutils_TEXI) > windmc.pod
|
|
|
|
-($(POD2MAN) windmc.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
|
|
|
|
mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
|
|
|
|
rm -f windmc.pod
|
|
|
|
|
2006-05-19 21:10:58 +08:00
|
|
|
cxxfilt.man: $(binutils_TEXI) $(binutils_TEXINFOS)
|
2001-06-19 19:57:29 +08:00
|
|
|
touch $@
|
2003-11-28 12:58:41 +08:00
|
|
|
-$(TEXI2POD) $(MANCONF) -Dcxxfilt < $(binutils_TEXI) > $(DEMANGLER_NAME).pod
|
2001-07-04 00:35:34 +08:00
|
|
|
-($(POD2MAN) $(DEMANGLER_NAME).pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
|
2001-06-19 19:57:29 +08:00
|
|
|
mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
|
2001-07-04 00:35:34 +08:00
|
|
|
rm -f $(DEMANGLER_NAME).pod
|
2001-06-19 19:57:29 +08:00
|
|
|
|
|
|
|
MOSTLYCLEANFILES = $(DEMANGLER_NAME).1
|
|
|
|
|
|
|
|
$(DEMANGLER_NAME).1: cxxfilt.man Makefile
|
2001-09-20 01:02:38 +08:00
|
|
|
if test -f cxxfilt.man; then \
|
|
|
|
man=cxxfilt.man; \
|
|
|
|
else \
|
|
|
|
man=$(srcdir)/cxxfilt.man; \
|
|
|
|
fi; \
|
2001-07-04 00:35:34 +08:00
|
|
|
sed -e 's/@PROGRAM@/$(DEMANGLER_NAME)/' \
|
2001-09-20 01:02:38 +08:00
|
|
|
-e 's/cxxfilt/$(DEMANGLER_NAME)/' < $$man \
|
2001-06-19 19:57:29 +08:00
|
|
|
> $(DEMANGLER_NAME).1
|
|
|
|
|
2002-01-27 05:27:36 +08:00
|
|
|
# We want install to imply install-info as per GNU standards, despite the
|
|
|
|
# cygnus option.
|
2005-05-16 02:19:45 +08:00
|
|
|
install-data-local: install-info
|
2002-01-27 05:27:36 +08:00
|
|
|
|
2007-03-15 22:17:20 +08:00
|
|
|
MAINTAINERCLEANFILES = binutils.info
|
2006-12-11 23:09:46 +08:00
|
|
|
|
|
|
|
# Automake 1.9 will only build info files in the objdir if they are
|
|
|
|
# mentioned in DISTCLEANFILES. It doesn't have to be unconditional,
|
|
|
|
# though, so we use a bogus condition.
|
|
|
|
if GENINSRC_NEVER
|
|
|
|
DISTCLEANFILES = binutils.info
|
|
|
|
endif
|
|
|
|
|
2001-06-19 19:57:29 +08:00
|
|
|
# Maintenance
|
|
|
|
|
|
|
|
# We need it for the taz target in ../../Makefile.in.
|
2005-05-16 02:19:45 +08:00
|
|
|
info-local: $(MANS)
|