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
34 binutils_TEXINFOS = config.texi
35 binutils_TEXI = $(srcdir)/binutils.texi
37 config.texi: $(srcdir)/../../bfd/configure $(binutils_TEXI)
39 eval `grep '^ *VERSION=' $(srcdir)/../../bfd/configure`; \
40 echo "@set VERSION $$VERSION" > $@
41 echo "@set UPDATED `date "+%B %Y"`" >> config.texi
43 # Man page generation from texinfo
44 addr2line.1: $(binutils_TEXI)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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 windres.1: $(binutils_TEXI)
130 -$(TEXI2POD) $(MANCONF) -Dwindres < $(binutils_TEXI) > windres.pod
131 -($(POD2MAN) windres.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
132 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
135 cxxfilt.man: $(binutils_TEXI)
137 -$(TEXI2POD) $(MANCONF) -Dcxxfilt < $(binutils_TEXI) > $(DEMANGLER_NAME).pod
138 -($(POD2MAN) $(DEMANGLER_NAME).pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
139 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
140 rm -f $(DEMANGLER_NAME).pod
142 MAINTAINERCLEANFILES = config.texi
143 MOSTLYCLEANFILES = $(DEMANGLER_NAME).1
145 $(DEMANGLER_NAME).1: cxxfilt.man Makefile
146 if test -f cxxfilt.man; then \
149 man=$(srcdir)/cxxfilt.man; \
151 sed -e 's/@PROGRAM@/$(DEMANGLER_NAME)/' \
152 -e 's/cxxfilt/$(DEMANGLER_NAME)/' < $$man \
153 > $(DEMANGLER_NAME).1
155 # We want install to imply install-info as per GNU standards, despite the
157 install-data-local: install-info
161 # We need it for the taz target in ../../Makefile.in.