binutils/
[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
42ecbf5e
DJ
34binutils_TEXINFOS = config.texi
35binutils_TEXI = $(srcdir)/binutils.texi
c45021f2 36
42ecbf5e 37config.texi: $(srcdir)/../../bfd/configure $(binutils_TEXI)
c45021f2 38 rm -f config.texi
970c3dbc
DJ
39 eval `grep '^ *VERSION=' $(srcdir)/../../bfd/configure`; \
40 echo "@set VERSION $$VERSION" > $@
36607f99 41 echo "@set UPDATED `date "+%B %Y"`" >> config.texi
c45021f2 42
c45021f2
NC
43# Man page generation from texinfo
44addr2line.1: $(binutils_TEXI)
45 touch $@
75aa6618 46 -$(TEXI2POD) $(MANCONF) -Daddr2line < $(binutils_TEXI) > addr2line.pod
4258bf4d 47 -($(POD2MAN) addr2line.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
c45021f2 48 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
4258bf4d 49 rm -f addr2line.pod
c45021f2
NC
50
51ar.1: $(binutils_TEXI)
52 touch $@
75aa6618 53 -$(TEXI2POD) $(MANCONF) -Dar < $(binutils_TEXI) > ar.pod
4258bf4d 54 -($(POD2MAN) ar.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
c45021f2 55 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
4258bf4d 56 rm -f ar.pod
c45021f2
NC
57
58dlltool.1: $(binutils_TEXI)
59 touch $@
75aa6618 60 -$(TEXI2POD) $(MANCONF) -Ddlltool < $(binutils_TEXI) > dlltool.pod
4258bf4d 61 -($(POD2MAN) dlltool.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
c45021f2 62 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
4258bf4d 63 rm -f dlltool.pod
c45021f2
NC
64
65nlmconv.1: $(binutils_TEXI)
66 touch $@
75aa6618 67 -$(TEXI2POD) $(MANCONF) -Dnlmconv < $(binutils_TEXI) > nlmconv.pod
4258bf4d 68 -($(POD2MAN) nlmconv.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
c45021f2 69 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
4258bf4d 70 rm -f nlmconv.pod
c45021f2
NC
71
72nm.1: $(binutils_TEXI)
73 touch $@
75aa6618 74 -$(TEXI2POD) $(MANCONF) -Dnm < $(binutils_TEXI) > nm.pod
4258bf4d 75 -($(POD2MAN) nm.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
c45021f2 76 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
4258bf4d 77 rm -f nm.pod
c45021f2
NC
78
79objcopy.1: $(binutils_TEXI)
80 touch $@
75aa6618 81 -$(TEXI2POD) $(MANCONF) -Dobjcopy < $(binutils_TEXI) > objcopy.pod
4258bf4d 82 -($(POD2MAN) objcopy.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
c45021f2 83 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
4258bf4d 84 rm -f objcopy.pod
c45021f2
NC
85
86objdump.1: $(binutils_TEXI)
87 touch $@
75aa6618 88 -$(TEXI2POD) $(MANCONF) -Dobjdump < $(binutils_TEXI) > objdump.pod
4258bf4d 89 -($(POD2MAN) objdump.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
c45021f2 90 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
4258bf4d 91 rm -f objdump.pod
c45021f2
NC
92
93ranlib.1: $(binutils_TEXI)
94 touch $@
75aa6618 95 -$(TEXI2POD) $(MANCONF) -Dranlib < $(binutils_TEXI) > ranlib.pod
4258bf4d 96 -($(POD2MAN) ranlib.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
c45021f2 97 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
4258bf4d 98 rm -f ranlib.pod
c45021f2
NC
99
100readelf.1: $(binutils_TEXI)
101 touch $@
75aa6618 102 -$(TEXI2POD) $(MANCONF) -Dreadelf < $(binutils_TEXI) > readelf.pod
4258bf4d 103 -($(POD2MAN) readelf.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
c45021f2 104 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
4258bf4d 105 rm -f readelf.pod
c45021f2
NC
106
107size.1: $(binutils_TEXI)
108 touch $@
75aa6618 109 -$(TEXI2POD) $(MANCONF) -Dsize < $(binutils_TEXI) > size.pod
4258bf4d 110 -($(POD2MAN) size.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
c45021f2 111 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
4258bf4d 112 rm -f size.pod
c45021f2
NC
113
114strings.1: $(binutils_TEXI)
115 touch $@
75aa6618 116 -$(TEXI2POD) $(MANCONF) -Dstrings < $(binutils_TEXI) > strings.pod
4258bf4d 117 -($(POD2MAN) strings.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
c45021f2 118 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
4258bf4d 119 rm -f strings.pod
c45021f2
NC
120
121strip.1: $(binutils_TEXI)
122 touch $@
75aa6618 123 -$(TEXI2POD) $(MANCONF) -Dstrip < $(binutils_TEXI) > strip.pod
4258bf4d 124 -($(POD2MAN) strip.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
c45021f2 125 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
4258bf4d 126 rm -f strip.pod
c45021f2
NC
127
128windres.1: $(binutils_TEXI)
129 touch $@
75aa6618 130 -$(TEXI2POD) $(MANCONF) -Dwindres < $(binutils_TEXI) > windres.pod
4258bf4d 131 -($(POD2MAN) windres.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
c45021f2 132 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
4258bf4d 133 rm -f windres.pod
c45021f2
NC
134
135cxxfilt.man: $(binutils_TEXI)
136 touch $@
75aa6618 137 -$(TEXI2POD) $(MANCONF) -Dcxxfilt < $(binutils_TEXI) > $(DEMANGLER_NAME).pod
4258bf4d 138 -($(POD2MAN) $(DEMANGLER_NAME).pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
c45021f2 139 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
4258bf4d 140 rm -f $(DEMANGLER_NAME).pod
c45021f2
NC
141
142MAINTAINERCLEANFILES = config.texi
c45021f2
NC
143MOSTLYCLEANFILES = $(DEMANGLER_NAME).1
144
145$(DEMANGLER_NAME).1: cxxfilt.man Makefile
38131e67
L
146 if test -f cxxfilt.man; then \
147 man=cxxfilt.man; \
148 else \
149 man=$(srcdir)/cxxfilt.man; \
150 fi; \
4258bf4d 151 sed -e 's/@PROGRAM@/$(DEMANGLER_NAME)/' \
38131e67 152 -e 's/cxxfilt/$(DEMANGLER_NAME)/' < $$man \
c45021f2
NC
153 > $(DEMANGLER_NAME).1
154
7562a296
HPN
155# We want install to imply install-info as per GNU standards, despite the
156# cygnus option.
42ecbf5e 157install-data-local: install-info
7562a296 158
c45021f2
NC
159# Maintenance
160
161# We need it for the taz target in ../../Makefile.in.
42ecbf5e 162info-local: $(MANS)
This page took 0.181091 seconds and 4 git commands to generate.