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
13 POD2MAN = pod2man --center="GNU Development Tools" \
14 --release="binutils-$(VERSION)" --section=1
16 # List of man pages generated from binutils.texi
33 info_TEXINFOS = binutils.texi
37 echo '@set VERSION $(VERSION)' > config.texi
39 binutils_TEXI = $(srcdir)/binutils.texi
41 binutils.dvi: $(binutils_TEXI) config.texi
43 binutils.info: $(binutils_TEXI) config.texi
45 # Man page generation from texinfo
46 addr2line.1: $(binutils_TEXI)
48 -$(TEXI2POD) $(MANCONF) -Daddr2line < $(binutils_TEXI) > addr2line.pod
49 -($(POD2MAN) addr2line.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
50 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
53 ar.1: $(binutils_TEXI)
55 -$(TEXI2POD) $(MANCONF) -Dar < $(binutils_TEXI) > ar.pod
56 -($(POD2MAN) ar.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
57 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
60 dlltool.1: $(binutils_TEXI)
62 -$(TEXI2POD) $(MANCONF) -Ddlltool < $(binutils_TEXI) > dlltool.pod
63 -($(POD2MAN) dlltool.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
64 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
67 nlmconv.1: $(binutils_TEXI)
69 -$(TEXI2POD) $(MANCONF) -Dnlmconv < $(binutils_TEXI) > nlmconv.pod
70 -($(POD2MAN) nlmconv.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
71 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
74 nm.1: $(binutils_TEXI)
76 -$(TEXI2POD) $(MANCONF) -Dnm < $(binutils_TEXI) > nm.pod
77 -($(POD2MAN) nm.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
78 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
81 objcopy.1: $(binutils_TEXI)
83 -$(TEXI2POD) $(MANCONF) -Dobjcopy < $(binutils_TEXI) > objcopy.pod
84 -($(POD2MAN) objcopy.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
85 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
88 objdump.1: $(binutils_TEXI)
90 -$(TEXI2POD) $(MANCONF) -Dobjdump < $(binutils_TEXI) > objdump.pod
91 -($(POD2MAN) objdump.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
92 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
95 ranlib.1: $(binutils_TEXI)
97 -$(TEXI2POD) $(MANCONF) -Dranlib < $(binutils_TEXI) > ranlib.pod
98 -($(POD2MAN) ranlib.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
99 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
102 readelf.1: $(binutils_TEXI)
104 -$(TEXI2POD) $(MANCONF) -Dreadelf < $(binutils_TEXI) > readelf.pod
105 -($(POD2MAN) readelf.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
106 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
109 size.1: $(binutils_TEXI)
111 -$(TEXI2POD) $(MANCONF) -Dsize < $(binutils_TEXI) > size.pod
112 -($(POD2MAN) size.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
113 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
116 strings.1: $(binutils_TEXI)
118 -$(TEXI2POD) $(MANCONF) -Dstrings < $(binutils_TEXI) > strings.pod
119 -($(POD2MAN) strings.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
120 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
123 strip.1: $(binutils_TEXI)
125 -$(TEXI2POD) $(MANCONF) -Dstrip < $(binutils_TEXI) > strip.pod
126 -($(POD2MAN) strip.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
127 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
130 windres.1: $(binutils_TEXI)
132 -$(TEXI2POD) $(MANCONF) -Dwindres < $(binutils_TEXI) > windres.pod
133 -($(POD2MAN) windres.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
134 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
137 cxxfilt.man: $(binutils_TEXI)
139 -$(TEXI2POD) $(MANCONF) -Dcxxfilt < $(binutils_TEXI) > $(DEMANGLER_NAME).pod
140 -($(POD2MAN) $(DEMANGLER_NAME).pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
141 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
142 rm -f $(DEMANGLER_NAME).pod
144 MAINTAINERCLEANFILES = config.texi
145 DISTCLEANFILES = config.texi
146 MOSTLYCLEANFILES = $(DEMANGLER_NAME).1
148 $(DEMANGLER_NAME).1: cxxfilt.man Makefile
149 if test -f cxxfilt.man; then \
152 man=$(srcdir)/cxxfilt.man; \
154 sed -e 's/@PROGRAM@/$(DEMANGLER_NAME)/' \
155 -e 's/cxxfilt/$(DEMANGLER_NAME)/' < $$man \
156 > $(DEMANGLER_NAME).1
158 # We want install to imply install-info as per GNU standards, despite the
160 install: install-info
164 # We need it for the taz target in ../../Makefile.in.