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
33 info_TEXINFOS = binutils.texi
34 binutils_TEXINFOS = config.texi
35 binutils_TEXI = $(srcdir)/binutils.texi
37 AM_MAKEINFOFLAGS = -I "$(srcdir)" -I "$(top_srcdir)/../libiberty"
38 TEXI2DVI = texi2dvi -I "$(srcdir)" -I "$(top_srcdir)/../libiberty"
40 config.texi: $(srcdir)/../../bfd/configure $(binutils_TEXI)
42 eval `grep '^ *VERSION=' $(srcdir)/../../bfd/configure`; \
43 echo "@set VERSION $$VERSION" > $@
44 echo "@set UPDATED `date '+%B %Y'`" >> config.texi
45 if [ -n "$(REPORT_BUGS_TEXI)" ]; then \
46 echo "@set BUGURL $(REPORT_BUGS_TEXI)" >> config.texi; \
49 # Man page generation from texinfo
50 addr2line.1: $(binutils_TEXI) $(binutils_TEXINFOS)
52 -$(TEXI2POD) $(MANCONF) -Daddr2line < $(binutils_TEXI) > addr2line.pod
53 -($(POD2MAN) addr2line.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
54 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
57 ar.1: $(binutils_TEXI) $(binutils_TEXINFOS)
59 -$(TEXI2POD) $(MANCONF) -Dar < $(binutils_TEXI) > ar.pod
60 -($(POD2MAN) ar.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
61 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
64 dlltool.1: $(binutils_TEXI) $(binutils_TEXINFOS)
66 -$(TEXI2POD) $(MANCONF) -Ddlltool < $(binutils_TEXI) > dlltool.pod
67 -($(POD2MAN) dlltool.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
68 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
71 nlmconv.1: $(binutils_TEXI) $(binutils_TEXINFOS)
73 -$(TEXI2POD) $(MANCONF) -Dnlmconv < $(binutils_TEXI) > nlmconv.pod
74 -($(POD2MAN) nlmconv.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
75 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
78 nm.1: $(binutils_TEXI) $(binutils_TEXINFOS)
80 -$(TEXI2POD) $(MANCONF) -Dnm < $(binutils_TEXI) > nm.pod
81 -($(POD2MAN) nm.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
82 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
85 objcopy.1: $(binutils_TEXI) $(binutils_TEXINFOS)
87 -$(TEXI2POD) $(MANCONF) -Dobjcopy < $(binutils_TEXI) > objcopy.pod
88 -($(POD2MAN) objcopy.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
89 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
92 objdump.1: $(binutils_TEXI) $(binutils_TEXINFOS)
94 -$(TEXI2POD) $(MANCONF) -Dobjdump < $(binutils_TEXI) > objdump.pod
95 -($(POD2MAN) objdump.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
96 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
99 ranlib.1: $(binutils_TEXI) $(binutils_TEXINFOS)
101 -$(TEXI2POD) $(MANCONF) -Dranlib < $(binutils_TEXI) > ranlib.pod
102 -($(POD2MAN) ranlib.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
103 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
106 readelf.1: $(binutils_TEXI) $(binutils_TEXINFOS)
108 -$(TEXI2POD) $(MANCONF) -Dreadelf < $(binutils_TEXI) > readelf.pod
109 -($(POD2MAN) readelf.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
110 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
113 size.1: $(binutils_TEXI) $(binutils_TEXINFOS)
115 -$(TEXI2POD) $(MANCONF) -Dsize < $(binutils_TEXI) > size.pod
116 -($(POD2MAN) size.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
117 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
120 strings.1: $(binutils_TEXI) $(binutils_TEXINFOS)
122 -$(TEXI2POD) $(MANCONF) -Dstrings < $(binutils_TEXI) > strings.pod
123 -($(POD2MAN) strings.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
124 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
127 strip.1: $(binutils_TEXI) $(binutils_TEXINFOS)
129 -$(TEXI2POD) $(MANCONF) -Dstrip < $(binutils_TEXI) > strip.pod
130 -($(POD2MAN) strip.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
131 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
134 windres.1: $(binutils_TEXI) $(binutils_TEXINFOS)
136 -$(TEXI2POD) $(MANCONF) -Dwindres < $(binutils_TEXI) > windres.pod
137 -($(POD2MAN) windres.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
138 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
141 cxxfilt.man: $(binutils_TEXI) $(binutils_TEXINFOS)
143 -$(TEXI2POD) $(MANCONF) -Dcxxfilt < $(binutils_TEXI) > $(DEMANGLER_NAME).pod
144 -($(POD2MAN) $(DEMANGLER_NAME).pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
145 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
146 rm -f $(DEMANGLER_NAME).pod
148 MAINTAINERCLEANFILES = config.texi
149 MOSTLYCLEANFILES = $(DEMANGLER_NAME).1
151 $(DEMANGLER_NAME).1: cxxfilt.man Makefile
152 if test -f cxxfilt.man; then \
155 man=$(srcdir)/cxxfilt.man; \
157 sed -e 's/@PROGRAM@/$(DEMANGLER_NAME)/' \
158 -e 's/cxxfilt/$(DEMANGLER_NAME)/' < $$man \
159 > $(DEMANGLER_NAME).1
161 # We want install to imply install-info as per GNU standards, despite the
163 install-data-local: install-info
165 html__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
167 install-html: install-html-am
169 install-html-am: $(HTMLS)
171 test -z "$(htmldir)" || $(mkdir_p) "$(DESTDIR)$(htmldir)"
172 @list='$(HTMLS)'; for p in $$list; do \
173 if test -f "$$p" || test -d "$$p"; then d=""; else d="$(srcdir)/"; fi; \
174 f=$(html__strip_dir) \
175 if test -d "$$d$$p"; then \
176 echo " $(mkdir_p) '$(DESTDIR)$(htmldir)/$$f'"; \
177 $(mkdir_p) "$(DESTDIR)$(htmldir)/$$f" || exit 1; \
178 echo " $(INSTALL_DATA) '$$d$$p'/* '$(DESTDIR)$(htmldir)/$$f'"; \
179 $(INSTALL_DATA) "$$d$$p"/* "$(DESTDIR)$(htmldir)/$$f"; \
181 echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(htmldir)/$$f'"; \
182 $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(htmldir)/$$f"; \
186 MAINTAINERCLEANFILES += binutils.info
188 # Automake 1.9 will only build info files in the objdir if they are
189 # mentioned in DISTCLEANFILES. It doesn't have to be unconditional,
190 # though, so we use a bogus condition.
192 DISTCLEANFILES = binutils.info
197 # We need it for the taz target in ../../Makefile.in.