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
46 # Man page generation from texinfo
47 addr2line.1: $(binutils_TEXI) $(binutils_TEXINFOS)
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) $(binutils_TEXINFOS)
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) $(binutils_TEXINFOS)
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) $(binutils_TEXINFOS)
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) $(binutils_TEXINFOS)
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) $(binutils_TEXINFOS)
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) $(binutils_TEXINFOS)
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) $(binutils_TEXINFOS)
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) $(binutils_TEXINFOS)
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) $(binutils_TEXINFOS)
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) $(binutils_TEXINFOS)
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) $(binutils_TEXINFOS)
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) $(binutils_TEXINFOS)
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) $(binutils_TEXINFOS)
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 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-data-local: install-info
162 html__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
164 install-html: install-html-am
166 install-html-am: $(HTMLS)
168 test -z "$(htmldir)" || $(mkdir_p) "$(DESTDIR)$(htmldir)"
169 @list='$(HTMLS)'; for p in $$list; do \
170 if test -f "$$p" || test -d "$$p"; then d=""; else d="$(srcdir)/"; fi; \
171 f=$(html__strip_dir) \
172 if test -d "$$d$$p"; then \
173 echo " $(mkdir_p) '$(DESTDIR)$(htmldir)/$$f'"; \
174 $(mkdir_p) "$(DESTDIR)$(htmldir)/$$f" || exit 1; \
175 echo " $(INSTALL_DATA) '$$d$$p'/* '$(DESTDIR)$(htmldir)/$$f'"; \
176 $(INSTALL_DATA) "$$d$$p"/* "$(DESTDIR)$(htmldir)/$$f"; \
178 echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(htmldir)/$$f'"; \
179 $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(htmldir)/$$f"; \
183 MAINTAINERCLEANFILES += binutils.info
185 # Automake 1.9 will only build info files in the objdir if they are
186 # mentioned in DISTCLEANFILES. It doesn't have to be unconditional,
187 # though, so we use a bogus condition.
189 DISTCLEANFILES = binutils.info
194 # We need it for the taz target in ../../Makefile.in.