1 ## Process this file with automake to generate Makefile.in
3 AUTOMAKE_OPTIONS = cygnus
5 # What version of the manual you want; "all" includes everything
8 # Options to extract the man page from as.texinfo
11 TEXI2POD = perl $(top_srcdir)/../etc/texi2pod.pl $(AM_MAKEINFOFLAGS)
13 POD2MAN = pod2man --center="GNU Development Tools" \
14 --release="binutils-$(VERSION)" --section=1
16 # List of man pages generated from binutils.texi
35 info_TEXINFOS = binutils.texi
36 binutils_TEXI = $(srcdir)/binutils.texi
38 AM_MAKEINFOFLAGS = -I "$(srcdir)" -I "$(top_srcdir)/../libiberty" \
39 -I "$(top_srcdir)/../bfd/doc" -I ../../bfd/doc
40 TEXI2DVI = texi2dvi -I "$(srcdir)" -I "$(top_srcdir)/../libiberty" \
41 -I "$(top_srcdir)/../bfd/doc" -I ../../bfd/doc
43 # Man page generation from texinfo
44 addr2line.1: $(binutils_TEXI) $(binutils_TEXINFOS)
46 -$(TEXI2POD) $(MANCONF) -Daddr2line < $(binutils_TEXI) > addr2line.pod
47 -($(POD2MAN) addr2line.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
48 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
51 ar.1: $(binutils_TEXI) $(binutils_TEXINFOS)
53 -$(TEXI2POD) $(MANCONF) -Dar < $(binutils_TEXI) > ar.pod
54 -($(POD2MAN) ar.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
55 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
58 dlltool.1: $(binutils_TEXI) $(binutils_TEXINFOS)
60 -$(TEXI2POD) $(MANCONF) -Ddlltool < $(binutils_TEXI) > dlltool.pod
61 -($(POD2MAN) dlltool.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
62 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
65 nlmconv.1: $(binutils_TEXI) $(binutils_TEXINFOS)
67 -$(TEXI2POD) $(MANCONF) -Dnlmconv < $(binutils_TEXI) > nlmconv.pod
68 -($(POD2MAN) nlmconv.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
69 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
72 nm.1: $(binutils_TEXI) $(binutils_TEXINFOS)
74 -$(TEXI2POD) $(MANCONF) -Dnm < $(binutils_TEXI) > nm.pod
75 -($(POD2MAN) nm.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
76 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
79 objcopy.1: $(binutils_TEXI) $(binutils_TEXINFOS)
81 -$(TEXI2POD) $(MANCONF) -Dobjcopy < $(binutils_TEXI) > objcopy.pod
82 -($(POD2MAN) objcopy.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
83 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
86 objdump.1: $(binutils_TEXI) $(binutils_TEXINFOS)
88 -$(TEXI2POD) $(MANCONF) -Dobjdump < $(binutils_TEXI) > objdump.pod
89 -($(POD2MAN) objdump.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
90 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
93 ranlib.1: $(binutils_TEXI) $(binutils_TEXINFOS)
95 -$(TEXI2POD) $(MANCONF) -Dranlib < $(binutils_TEXI) > ranlib.pod
96 -($(POD2MAN) ranlib.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
97 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
100 readelf.1: $(binutils_TEXI) $(binutils_TEXINFOS)
102 -$(TEXI2POD) $(MANCONF) -Dreadelf < $(binutils_TEXI) > readelf.pod
103 -($(POD2MAN) readelf.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
104 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
107 size.1: $(binutils_TEXI) $(binutils_TEXINFOS)
109 -$(TEXI2POD) $(MANCONF) -Dsize < $(binutils_TEXI) > size.pod
110 -($(POD2MAN) size.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
111 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
114 strings.1: $(binutils_TEXI) $(binutils_TEXINFOS)
116 -$(TEXI2POD) $(MANCONF) -Dstrings < $(binutils_TEXI) > strings.pod
117 -($(POD2MAN) strings.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
118 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
121 strip.1: $(binutils_TEXI) $(binutils_TEXINFOS)
123 -$(TEXI2POD) $(MANCONF) -Dstrip < $(binutils_TEXI) > strip.pod
124 -($(POD2MAN) strip.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
125 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
128 elfedit.1: $(binutils_TEXI) $(binutils_TEXINFOS)
130 -$(TEXI2POD) $(MANCONF) -Delfedit < $(binutils_TEXI) > elfedit.pod
131 -($(POD2MAN) elfedit.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
132 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
135 windres.1: $(binutils_TEXI) $(binutils_TEXINFOS)
137 -$(TEXI2POD) $(MANCONF) -Dwindres < $(binutils_TEXI) > windres.pod
138 -($(POD2MAN) windres.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
139 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
142 windmc.1: $(binutils_TEXI) $(binutils_TEXINFOS)
144 -$(TEXI2POD) $(MANCONF) -Dwindmc < $(binutils_TEXI) > windmc.pod
145 -($(POD2MAN) windmc.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
146 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
149 cxxfilt.man: $(binutils_TEXI) $(binutils_TEXINFOS)
151 -$(TEXI2POD) $(MANCONF) -Dcxxfilt < $(binutils_TEXI) > $(DEMANGLER_NAME).pod
152 -($(POD2MAN) $(DEMANGLER_NAME).pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
153 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
154 rm -f $(DEMANGLER_NAME).pod
156 MOSTLYCLEANFILES = $(DEMANGLER_NAME).1
158 $(DEMANGLER_NAME).1: cxxfilt.man Makefile
159 if test -f cxxfilt.man; then \
162 man=$(srcdir)/cxxfilt.man; \
164 sed -e 's/@PROGRAM@/$(DEMANGLER_NAME)/' \
165 -e 's/cxxfilt/$(DEMANGLER_NAME)/' < $$man \
166 > $(DEMANGLER_NAME).1
168 # We want install to imply install-info as per GNU standards, despite the
170 install-data-local: install-info
172 MAINTAINERCLEANFILES = binutils.info
174 # Automake 1.9 will only build info files in the objdir if they are
175 # mentioned in DISTCLEANFILES. It doesn't have to be unconditional,
176 # though, so we use a bogus condition.
178 DISTCLEANFILES = binutils.info
183 # We need it for the taz target in ../../Makefile.in.