07c1d92fb6758d6f5b86248ab5d8dcbed5f9cb17
[deliverable/binutils-gdb.git] / binutils / doc / Makefile.am
1 ## Process this file with automake to generate Makefile.in
2
3 AUTOMAKE_OPTIONS = cygnus
4
5 # What version of the manual you want; "all" includes everything
6 CONFIG=all
7
8 # Options to extract the man page from as.texinfo
9 MANCONF = -Dman
10
11 TEXI2POD = perl $(top_srcdir)/../etc/texi2pod.pl
12
13 POD2MAN = pod2man --center="GNU Development Tools" \
14 --release="binutils-$(VERSION)" --section=1
15
16 # List of man pages generated from binutils.texi
17 man_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
33 info_TEXINFOS = binutils.texi
34
35 config.texi: Makefile
36 rm -f config.texi
37 echo '@set VERSION $(VERSION)' > config.texi
38 echo "@set UPDATED `date "+%B %Y"`" >> config.texi
39
40 binutils_TEXI = $(srcdir)/binutils.texi
41
42 binutils.dvi: $(binutils_TEXI) config.texi
43
44 binutils.info: $(binutils_TEXI) config.texi
45
46 # Man page generation from texinfo
47 addr2line.1: $(binutils_TEXI)
48 touch $@
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)
52 rm -f addr2line.pod
53
54 ar.1: $(binutils_TEXI)
55 touch $@
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)
59 rm -f ar.pod
60
61 dlltool.1: $(binutils_TEXI)
62 touch $@
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)
66 rm -f dlltool.pod
67
68 nlmconv.1: $(binutils_TEXI)
69 touch $@
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)
73 rm -f nlmconv.pod
74
75 nm.1: $(binutils_TEXI)
76 touch $@
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)
80 rm -f nm.pod
81
82 objcopy.1: $(binutils_TEXI)
83 touch $@
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)
87 rm -f objcopy.pod
88
89 objdump.1: $(binutils_TEXI)
90 touch $@
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)
94 rm -f objdump.pod
95
96 ranlib.1: $(binutils_TEXI)
97 touch $@
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)
101 rm -f ranlib.pod
102
103 readelf.1: $(binutils_TEXI)
104 touch $@
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)
108 rm -f readelf.pod
109
110 size.1: $(binutils_TEXI)
111 touch $@
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)
115 rm -f size.pod
116
117 strings.1: $(binutils_TEXI)
118 touch $@
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)
122 rm -f strings.pod
123
124 strip.1: $(binutils_TEXI)
125 touch $@
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)
129 rm -f strip.pod
130
131 windres.1: $(binutils_TEXI)
132 touch $@
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)
136 rm -f windres.pod
137
138 cxxfilt.man: $(binutils_TEXI)
139 touch $@
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
144
145 MAINTAINERCLEANFILES = config.texi
146 DISTCLEANFILES = config.texi
147 MOSTLYCLEANFILES = $(DEMANGLER_NAME).1
148
149 $(DEMANGLER_NAME).1: cxxfilt.man Makefile
150 if test -f cxxfilt.man; then \
151 man=cxxfilt.man; \
152 else \
153 man=$(srcdir)/cxxfilt.man; \
154 fi; \
155 sed -e 's/@PROGRAM@/$(DEMANGLER_NAME)/' \
156 -e 's/cxxfilt/$(DEMANGLER_NAME)/' < $$man \
157 > $(DEMANGLER_NAME).1
158
159 # We want install to imply install-info as per GNU standards, despite the
160 # cygnus option.
161 install: install-info
162
163 # Maintenance
164
165 # We need it for the taz target in ../../Makefile.in.
166 info: $(MANS)
This page took 0.057088 seconds and 3 git commands to generate.