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_TEXI = $(srcdir)/binutils.texi
36 AM_MAKEINFOFLAGS = -I "$(srcdir)" -I "$(top_srcdir)/../libiberty" \
38 TEXI2DVI = texi2dvi -I "$(srcdir)" -I "$(top_srcdir)/../libiberty" \
41 # Man page generation from texinfo
42 addr2line.1: $(binutils_TEXI) $(binutils_TEXINFOS)
44 -$(TEXI2POD) $(MANCONF) -Daddr2line < $(binutils_TEXI) > addr2line.pod
45 -($(POD2MAN) addr2line.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
46 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
49 ar.1: $(binutils_TEXI) $(binutils_TEXINFOS)
51 -$(TEXI2POD) $(MANCONF) -Dar < $(binutils_TEXI) > ar.pod
52 -($(POD2MAN) ar.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
53 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
56 dlltool.1: $(binutils_TEXI) $(binutils_TEXINFOS)
58 -$(TEXI2POD) $(MANCONF) -Ddlltool < $(binutils_TEXI) > dlltool.pod
59 -($(POD2MAN) dlltool.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
60 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
63 nlmconv.1: $(binutils_TEXI) $(binutils_TEXINFOS)
65 -$(TEXI2POD) $(MANCONF) -Dnlmconv < $(binutils_TEXI) > nlmconv.pod
66 -($(POD2MAN) nlmconv.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
67 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
70 nm.1: $(binutils_TEXI) $(binutils_TEXINFOS)
72 -$(TEXI2POD) $(MANCONF) -Dnm < $(binutils_TEXI) > nm.pod
73 -($(POD2MAN) nm.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
74 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
77 objcopy.1: $(binutils_TEXI) $(binutils_TEXINFOS)
79 -$(TEXI2POD) $(MANCONF) -Dobjcopy < $(binutils_TEXI) > objcopy.pod
80 -($(POD2MAN) objcopy.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
81 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
84 objdump.1: $(binutils_TEXI) $(binutils_TEXINFOS)
86 -$(TEXI2POD) $(MANCONF) -Dobjdump < $(binutils_TEXI) > objdump.pod
87 -($(POD2MAN) objdump.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
88 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
91 ranlib.1: $(binutils_TEXI) $(binutils_TEXINFOS)
93 -$(TEXI2POD) $(MANCONF) -Dranlib < $(binutils_TEXI) > ranlib.pod
94 -($(POD2MAN) ranlib.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
95 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
98 readelf.1: $(binutils_TEXI) $(binutils_TEXINFOS)
100 -$(TEXI2POD) $(MANCONF) -Dreadelf < $(binutils_TEXI) > readelf.pod
101 -($(POD2MAN) readelf.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
102 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
105 size.1: $(binutils_TEXI) $(binutils_TEXINFOS)
107 -$(TEXI2POD) $(MANCONF) -Dsize < $(binutils_TEXI) > size.pod
108 -($(POD2MAN) size.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
109 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
112 strings.1: $(binutils_TEXI) $(binutils_TEXINFOS)
114 -$(TEXI2POD) $(MANCONF) -Dstrings < $(binutils_TEXI) > strings.pod
115 -($(POD2MAN) strings.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
116 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
119 strip.1: $(binutils_TEXI) $(binutils_TEXINFOS)
121 -$(TEXI2POD) $(MANCONF) -Dstrip < $(binutils_TEXI) > strip.pod
122 -($(POD2MAN) strip.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
123 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
126 windres.1: $(binutils_TEXI) $(binutils_TEXINFOS)
128 -$(TEXI2POD) $(MANCONF) -Dwindres < $(binutils_TEXI) > windres.pod
129 -($(POD2MAN) windres.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
130 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
133 cxxfilt.man: $(binutils_TEXI) $(binutils_TEXINFOS)
135 -$(TEXI2POD) $(MANCONF) -Dcxxfilt < $(binutils_TEXI) > $(DEMANGLER_NAME).pod
136 -($(POD2MAN) $(DEMANGLER_NAME).pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
137 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
138 rm -f $(DEMANGLER_NAME).pod
140 MOSTLYCLEANFILES = $(DEMANGLER_NAME).1
142 $(DEMANGLER_NAME).1: cxxfilt.man Makefile
143 if test -f cxxfilt.man; then \
146 man=$(srcdir)/cxxfilt.man; \
148 sed -e 's/@PROGRAM@/$(DEMANGLER_NAME)/' \
149 -e 's/cxxfilt/$(DEMANGLER_NAME)/' < $$man \
150 > $(DEMANGLER_NAME).1
152 # We want install to imply install-info as per GNU standards, despite the
154 install-data-local: install-info
156 html__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
158 install-html: install-html-am
160 install-html-am: $(HTMLS)
162 test -z "$(htmldir)" || $(mkdir_p) "$(DESTDIR)$(htmldir)"
163 @list='$(HTMLS)'; for p in $$list; do \
164 if test -f "$$p" || test -d "$$p"; then d=""; else d="$(srcdir)/"; fi; \
165 f=$(html__strip_dir) \
166 if test -d "$$d$$p"; then \
167 echo " $(mkdir_p) '$(DESTDIR)$(htmldir)/$$f'"; \
168 $(mkdir_p) "$(DESTDIR)$(htmldir)/$$f" || exit 1; \
169 echo " $(INSTALL_DATA) '$$d$$p'/* '$(DESTDIR)$(htmldir)/$$f'"; \
170 $(INSTALL_DATA) "$$d$$p"/* "$(DESTDIR)$(htmldir)/$$f"; \
172 echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(htmldir)/$$f'"; \
173 $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(htmldir)/$$f"; \
177 MAINTAINERCLEANFILES = binutils.info
179 # Automake 1.9 will only build info files in the objdir if they are
180 # mentioned in DISTCLEANFILES. It doesn't have to be unconditional,
181 # though, so we use a bogus condition.
183 DISTCLEANFILES = binutils.info
188 # We need it for the taz target in ../../Makefile.in.