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
38 echo "@set UPDATED `date "+%B %Y"`" >> config.texi
40 binutils_TEXI = $(srcdir)/binutils.texi
42 binutils.dvi: $(binutils_TEXI) config.texi
44 binutils.info: $(binutils_TEXI) config.texi
46 # Man page generation from texinfo
47 addr2line.1: $(binutils_TEXI)
49 -$(TEXI2POD) $(MANCONF) -Daddr2line < $(binutils_TEXI) > addr2line.pod
50 -($(POD2MAN) addr2line.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
51 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
54 ar.1: $(binutils_TEXI)
56 -$(TEXI2POD) $(MANCONF) -Dar < $(binutils_TEXI) > ar.pod
57 -($(POD2MAN) ar.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
58 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
61 dlltool.1: $(binutils_TEXI)
63 -$(TEXI2POD) $(MANCONF) -Ddlltool < $(binutils_TEXI) > dlltool.pod
64 -($(POD2MAN) dlltool.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
65 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
68 nlmconv.1: $(binutils_TEXI)
70 -$(TEXI2POD) $(MANCONF) -Dnlmconv < $(binutils_TEXI) > nlmconv.pod
71 -($(POD2MAN) nlmconv.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
72 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
75 nm.1: $(binutils_TEXI)
77 -$(TEXI2POD) $(MANCONF) -Dnm < $(binutils_TEXI) > nm.pod
78 -($(POD2MAN) nm.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
79 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
82 objcopy.1: $(binutils_TEXI)
84 -$(TEXI2POD) $(MANCONF) -Dobjcopy < $(binutils_TEXI) > objcopy.pod
85 -($(POD2MAN) objcopy.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
86 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
89 objdump.1: $(binutils_TEXI)
91 -$(TEXI2POD) $(MANCONF) -Dobjdump < $(binutils_TEXI) > objdump.pod
92 -($(POD2MAN) objdump.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
93 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
96 ranlib.1: $(binutils_TEXI)
98 -$(TEXI2POD) $(MANCONF) -Dranlib < $(binutils_TEXI) > ranlib.pod
99 -($(POD2MAN) ranlib.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
100 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
103 readelf.1: $(binutils_TEXI)
105 -$(TEXI2POD) $(MANCONF) -Dreadelf < $(binutils_TEXI) > readelf.pod
106 -($(POD2MAN) readelf.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
107 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
110 size.1: $(binutils_TEXI)
112 -$(TEXI2POD) $(MANCONF) -Dsize < $(binutils_TEXI) > size.pod
113 -($(POD2MAN) size.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
114 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
117 strings.1: $(binutils_TEXI)
119 -$(TEXI2POD) $(MANCONF) -Dstrings < $(binutils_TEXI) > strings.pod
120 -($(POD2MAN) strings.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
121 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
124 strip.1: $(binutils_TEXI)
126 -$(TEXI2POD) $(MANCONF) -Dstrip < $(binutils_TEXI) > strip.pod
127 -($(POD2MAN) strip.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
128 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
131 windres.1: $(binutils_TEXI)
133 -$(TEXI2POD) $(MANCONF) -Dwindres < $(binutils_TEXI) > windres.pod
134 -($(POD2MAN) windres.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
135 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
138 cxxfilt.man: $(binutils_TEXI)
140 -$(TEXI2POD) $(MANCONF) -Dcxxfilt < $(binutils_TEXI) > $(DEMANGLER_NAME).pod
141 -($(POD2MAN) $(DEMANGLER_NAME).pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
142 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
143 rm -f $(DEMANGLER_NAME).pod
145 MAINTAINERCLEANFILES = config.texi
146 DISTCLEANFILES = config.texi
147 MOSTLYCLEANFILES = $(DEMANGLER_NAME).1
149 $(DEMANGLER_NAME).1: cxxfilt.man Makefile
150 if test -f cxxfilt.man; then \
153 man=$(srcdir)/cxxfilt.man; \
155 sed -e 's/@PROGRAM@/$(DEMANGLER_NAME)/' \
156 -e 's/cxxfilt/$(DEMANGLER_NAME)/' < $$man \
157 > $(DEMANGLER_NAME).1
159 # We want install to imply install-info as per GNU standards, despite the
161 install: install-info
165 # We need it for the taz target in ../../Makefile.in.