2002-08-19 Elena Zannoni <ezannoni@redhat.com>
[deliverable/binutils-gdb.git] / binutils / doc / Makefile.am
CommitLineData
c45021f2
NC
1## Process this file with automake to generate Makefile.in
2
3AUTOMAKE_OPTIONS = cygnus
4
5# What version of the manual you want; "all" includes everything
6CONFIG=all
7
8# Options to extract the man page from as.texinfo
9MANCONF = -Dman
10
11TEXI2POD = perl $(top_srcdir)/../etc/texi2pod.pl
12
c7c55b78
NC
13POD2MAN = pod2man --center="GNU Development Tools" \
14 --release="binutils-$(VERSION)" --section=1
c45021f2
NC
15
16# List of man pages generated from binutils.texi
17man_MANS = \
18 addr2line.1 \
19 ar.1 \
20 dlltool.1 \
21 nlmconv.1 \
22 nm.1 \
23 objcopy.1 \
24 objdump.1 \
25 ranlib.1 \
26 readelf.1 \
27 size.1 \
28 strings.1 \
29 strip.1 \
30 windres.1 \
31 $(DEMANGLER_NAME).1
32
33info_TEXINFOS = binutils.texi
34
35config.texi: Makefile
36 rm -f config.texi
37 echo '@set VERSION $(VERSION)' > config.texi
38
39binutils_TEXI = $(srcdir)/binutils.texi
40
41binutils.dvi: $(binutils_TEXI) config.texi
42
43binutils.info: $(binutils_TEXI) config.texi
44
45# Man page generation from texinfo
46addr2line.1: $(binutils_TEXI)
47 touch $@
4258bf4d
L
48 -$(TEXI2POD) $(MANCONF) -Daddr2line < $< > addr2line.pod
49 -($(POD2MAN) addr2line.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
c45021f2 50 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
4258bf4d 51 rm -f addr2line.pod
c45021f2
NC
52
53ar.1: $(binutils_TEXI)
54 touch $@
4258bf4d
L
55 -$(TEXI2POD) $(MANCONF) -Dar < $< > ar.pod
56 -($(POD2MAN) ar.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
c45021f2 57 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
4258bf4d 58 rm -f ar.pod
c45021f2
NC
59
60dlltool.1: $(binutils_TEXI)
61 touch $@
4258bf4d
L
62 -$(TEXI2POD) $(MANCONF) -Ddlltool < $< > dlltool.pod
63 -($(POD2MAN) dlltool.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
c45021f2 64 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
4258bf4d 65 rm -f dlltool.pod
c45021f2
NC
66
67nlmconv.1: $(binutils_TEXI)
68 touch $@
4258bf4d
L
69 -$(TEXI2POD) $(MANCONF) -Dnlmconv < $< > nlmconv.pod
70 -($(POD2MAN) nlmconv.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
c45021f2 71 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
4258bf4d 72 rm -f nlmconv.pod
c45021f2
NC
73
74nm.1: $(binutils_TEXI)
75 touch $@
4258bf4d
L
76 -$(TEXI2POD) $(MANCONF) -Dnm < $< > nm.pod
77 -($(POD2MAN) nm.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
c45021f2 78 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
4258bf4d 79 rm -f nm.pod
c45021f2
NC
80
81objcopy.1: $(binutils_TEXI)
82 touch $@
4258bf4d
L
83 -$(TEXI2POD) $(MANCONF) -Dobjcopy < $< > objcopy.pod
84 -($(POD2MAN) objcopy.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
c45021f2 85 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
4258bf4d 86 rm -f objcopy.pod
c45021f2
NC
87
88objdump.1: $(binutils_TEXI)
89 touch $@
4258bf4d
L
90 -$(TEXI2POD) $(MANCONF) -Dobjdump < $< > objdump.pod
91 -($(POD2MAN) objdump.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
c45021f2 92 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
4258bf4d 93 rm -f objdump.pod
c45021f2
NC
94
95ranlib.1: $(binutils_TEXI)
96 touch $@
4258bf4d
L
97 -$(TEXI2POD) $(MANCONF) -Dranlib < $< > ranlib.pod
98 -($(POD2MAN) ranlib.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
c45021f2 99 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
4258bf4d 100 rm -f ranlib.pod
c45021f2
NC
101
102readelf.1: $(binutils_TEXI)
103 touch $@
4258bf4d
L
104 -$(TEXI2POD) $(MANCONF) -Dreadelf < $< > readelf.pod
105 -($(POD2MAN) readelf.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
c45021f2 106 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
4258bf4d 107 rm -f readelf.pod
c45021f2
NC
108
109size.1: $(binutils_TEXI)
110 touch $@
4258bf4d
L
111 -$(TEXI2POD) $(MANCONF) -Dsize < $< > size.pod
112 -($(POD2MAN) size.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
c45021f2 113 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
4258bf4d 114 rm -f size.pod
c45021f2
NC
115
116strings.1: $(binutils_TEXI)
117 touch $@
4258bf4d
L
118 -$(TEXI2POD) $(MANCONF) -Dstrings < $< > strings.pod
119 -($(POD2MAN) strings.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
c45021f2 120 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
4258bf4d 121 rm -f strings.pod
c45021f2
NC
122
123strip.1: $(binutils_TEXI)
124 touch $@
4258bf4d
L
125 -$(TEXI2POD) $(MANCONF) -Dstrip < $< > strip.pod
126 -($(POD2MAN) strip.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
c45021f2 127 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
4258bf4d 128 rm -f strip.pod
c45021f2
NC
129
130windres.1: $(binutils_TEXI)
131 touch $@
4258bf4d
L
132 -$(TEXI2POD) $(MANCONF) -Dwindres < $< > windres.pod
133 -($(POD2MAN) windres.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
c45021f2 134 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
4258bf4d 135 rm -f windres.pod
c45021f2
NC
136
137cxxfilt.man: $(binutils_TEXI)
138 touch $@
4258bf4d
L
139 -$(TEXI2POD) $(MANCONF) -Dcxxfilt < $< > $(DEMANGLER_NAME).pod
140 -($(POD2MAN) $(DEMANGLER_NAME).pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
c45021f2 141 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
4258bf4d 142 rm -f $(DEMANGLER_NAME).pod
c45021f2
NC
143
144MAINTAINERCLEANFILES = config.texi
145DISTCLEANFILES = config.texi
146MOSTLYCLEANFILES = $(DEMANGLER_NAME).1
147
148$(DEMANGLER_NAME).1: cxxfilt.man Makefile
38131e67
L
149 if test -f cxxfilt.man; then \
150 man=cxxfilt.man; \
151 else \
152 man=$(srcdir)/cxxfilt.man; \
153 fi; \
4258bf4d 154 sed -e 's/@PROGRAM@/$(DEMANGLER_NAME)/' \
38131e67 155 -e 's/cxxfilt/$(DEMANGLER_NAME)/' < $$man \
c45021f2
NC
156 > $(DEMANGLER_NAME).1
157
7562a296
HPN
158# We want install to imply install-info as per GNU standards, despite the
159# cygnus option.
160install: install-info
161
c45021f2
NC
162# Maintenance
163
164# We need it for the taz target in ../../Makefile.in.
165info: $(MANS)
This page took 0.079908 seconds and 4 git commands to generate.