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
42 echo "@set top_srcdir $(top_srcdir)" >> config.texi
44 # Man page generation from texinfo
45 addr2line.1: $(binutils_TEXI)
47 -$(TEXI2POD) $(MANCONF) -Daddr2line < $(binutils_TEXI) > addr2line.pod
48 -($(POD2MAN) addr2line.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
49 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
52 ar.1: $(binutils_TEXI)
54 -$(TEXI2POD) $(MANCONF) -Dar < $(binutils_TEXI) > ar.pod
55 -($(POD2MAN) ar.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
56 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
59 dlltool.1: $(binutils_TEXI)
61 -$(TEXI2POD) $(MANCONF) -Ddlltool < $(binutils_TEXI) > dlltool.pod
62 -($(POD2MAN) dlltool.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
63 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
66 nlmconv.1: $(binutils_TEXI)
68 -$(TEXI2POD) $(MANCONF) -Dnlmconv < $(binutils_TEXI) > nlmconv.pod
69 -($(POD2MAN) nlmconv.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
70 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
73 nm.1: $(binutils_TEXI)
75 -$(TEXI2POD) $(MANCONF) -Dnm < $(binutils_TEXI) > nm.pod
76 -($(POD2MAN) nm.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
77 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
80 objcopy.1: $(binutils_TEXI)
82 -$(TEXI2POD) $(MANCONF) -Dobjcopy < $(binutils_TEXI) > objcopy.pod
83 -($(POD2MAN) objcopy.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
84 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
87 objdump.1: $(binutils_TEXI)
89 -$(TEXI2POD) $(MANCONF) -Dobjdump < $(binutils_TEXI) > objdump.pod
90 -($(POD2MAN) objdump.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
91 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
94 ranlib.1: $(binutils_TEXI)
96 -$(TEXI2POD) $(MANCONF) -Dranlib < $(binutils_TEXI) > ranlib.pod
97 -($(POD2MAN) ranlib.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
98 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
101 readelf.1: $(binutils_TEXI)
103 -$(TEXI2POD) $(MANCONF) -Dreadelf < $(binutils_TEXI) > readelf.pod
104 -($(POD2MAN) readelf.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
105 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
108 size.1: $(binutils_TEXI)
110 -$(TEXI2POD) $(MANCONF) -Dsize < $(binutils_TEXI) > size.pod
111 -($(POD2MAN) size.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
112 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
115 strings.1: $(binutils_TEXI)
117 -$(TEXI2POD) $(MANCONF) -Dstrings < $(binutils_TEXI) > strings.pod
118 -($(POD2MAN) strings.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
119 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
122 strip.1: $(binutils_TEXI)
124 -$(TEXI2POD) $(MANCONF) -Dstrip < $(binutils_TEXI) > strip.pod
125 -($(POD2MAN) strip.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
126 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
129 windres.1: $(binutils_TEXI)
131 -$(TEXI2POD) $(MANCONF) -Dwindres < $(binutils_TEXI) > windres.pod
132 -($(POD2MAN) windres.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
133 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
136 cxxfilt.man: $(binutils_TEXI)
138 -$(TEXI2POD) $(MANCONF) -Dcxxfilt < $(binutils_TEXI) > $(DEMANGLER_NAME).pod
139 -($(POD2MAN) $(DEMANGLER_NAME).pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
140 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
141 rm -f $(DEMANGLER_NAME).pod
143 MAINTAINERCLEANFILES = config.texi
144 MOSTLYCLEANFILES = $(DEMANGLER_NAME).1
146 $(DEMANGLER_NAME).1: cxxfilt.man Makefile
147 if test -f cxxfilt.man; then \
150 man=$(srcdir)/cxxfilt.man; \
152 sed -e 's/@PROGRAM@/$(DEMANGLER_NAME)/' \
153 -e 's/cxxfilt/$(DEMANGLER_NAME)/' < $$man \
154 > $(DEMANGLER_NAME).1
156 # We want install to imply install-info as per GNU standards, despite the
158 install-data-local: install-info
160 html__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
162 install-html: install-html-am
164 install-html-am: $(HTMLS)
166 test -z "$(htmldir)" || $(mkdir_p) "$(DESTDIR)$(htmldir)"
167 @list='$(HTMLS)'; for p in $$list; do \
168 if test -f "$$p" || test -d "$$p"; then d=""; else d="$(srcdir)/"; fi; \
169 f=$(html__strip_dir) \
170 if test -d "$$d$$p"; then \
171 echo " $(mkdir_p) '$(DESTDIR)$(htmldir)/$$f'"; \
172 $(mkdir_p) "$(DESTDIR)$(htmldir)/$$f" || exit 1; \
173 echo " $(INSTALL_DATA) '$$d$$p'/* '$(DESTDIR)$(htmldir)/$$f'"; \
174 $(INSTALL_DATA) "$$d$$p"/* "$(DESTDIR)$(htmldir)/$$f"; \
176 echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(htmldir)/$$f'"; \
177 $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(htmldir)/$$f"; \
183 # We need it for the taz target in ../../Makefile.in.