daily update
[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
38fc1cb1 11TEXI2POD = perl $(top_srcdir)/../etc/texi2pod.pl $(AM_MAKEINFOFLAGS)
c45021f2 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 \
30fd33bb 30 elfedit.1 \
c45021f2 31 windres.1 \
692ed3e7 32 windmc.1 \
c45021f2
NC
33 $(DEMANGLER_NAME).1
34
35info_TEXINFOS = binutils.texi
42ecbf5e 36binutils_TEXI = $(srcdir)/binutils.texi
c45021f2 37
c428fa83 38AM_MAKEINFOFLAGS = -I "$(srcdir)" -I "$(top_srcdir)/../libiberty" \
9975e4c4 39 -I "$(top_srcdir)/../bfd/doc" -I ../../bfd/doc
c428fa83 40TEXI2DVI = texi2dvi -I "$(srcdir)" -I "$(top_srcdir)/../libiberty" \
9975e4c4 41 -I "$(top_srcdir)/../bfd/doc" -I ../../bfd/doc
c45021f2 42
c45021f2 43# Man page generation from texinfo
f33e8c5b 44addr2line.1: $(binutils_TEXI) $(binutils_TEXINFOS)
c45021f2 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 50
f33e8c5b 51ar.1: $(binutils_TEXI) $(binutils_TEXINFOS)
c45021f2 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 57
f33e8c5b 58dlltool.1: $(binutils_TEXI) $(binutils_TEXINFOS)
c45021f2 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 64
f33e8c5b 65nlmconv.1: $(binutils_TEXI) $(binutils_TEXINFOS)
c45021f2 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 71
f33e8c5b 72nm.1: $(binutils_TEXI) $(binutils_TEXINFOS)
c45021f2 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 78
f33e8c5b 79objcopy.1: $(binutils_TEXI) $(binutils_TEXINFOS)
c45021f2 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 85
f33e8c5b 86objdump.1: $(binutils_TEXI) $(binutils_TEXINFOS)
c45021f2 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 92
f33e8c5b 93ranlib.1: $(binutils_TEXI) $(binutils_TEXINFOS)
c45021f2 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 99
f33e8c5b 100readelf.1: $(binutils_TEXI) $(binutils_TEXINFOS)
c45021f2 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 106
f33e8c5b 107size.1: $(binutils_TEXI) $(binutils_TEXINFOS)
c45021f2 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 113
f33e8c5b 114strings.1: $(binutils_TEXI) $(binutils_TEXINFOS)
c45021f2 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 120
f33e8c5b 121strip.1: $(binutils_TEXI) $(binutils_TEXINFOS)
c45021f2 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 127
30fd33bb
L
128elfedit.1: $(binutils_TEXI) $(binutils_TEXINFOS)
129 touch $@
130 -$(TEXI2POD) $(MANCONF) -Delfedit < $(binutils_TEXI) > elfedit.pod
131 -($(POD2MAN) elfedit.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
132 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
133 rm -f elfedit.pod
134
f33e8c5b 135windres.1: $(binutils_TEXI) $(binutils_TEXINFOS)
c45021f2 136 touch $@
75aa6618 137 -$(TEXI2POD) $(MANCONF) -Dwindres < $(binutils_TEXI) > windres.pod
4258bf4d 138 -($(POD2MAN) windres.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
c45021f2 139 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
4258bf4d 140 rm -f windres.pod
c45021f2 141
692ed3e7
NC
142windmc.1: $(binutils_TEXI) $(binutils_TEXINFOS)
143 touch $@
144 -$(TEXI2POD) $(MANCONF) -Dwindmc < $(binutils_TEXI) > windmc.pod
145 -($(POD2MAN) windmc.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
146 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
147 rm -f windmc.pod
148
f33e8c5b 149cxxfilt.man: $(binutils_TEXI) $(binutils_TEXINFOS)
c45021f2 150 touch $@
75aa6618 151 -$(TEXI2POD) $(MANCONF) -Dcxxfilt < $(binutils_TEXI) > $(DEMANGLER_NAME).pod
4258bf4d 152 -($(POD2MAN) $(DEMANGLER_NAME).pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \
c45021f2 153 mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1)
4258bf4d 154 rm -f $(DEMANGLER_NAME).pod
c45021f2 155
c45021f2
NC
156MOSTLYCLEANFILES = $(DEMANGLER_NAME).1
157
158$(DEMANGLER_NAME).1: cxxfilt.man Makefile
38131e67
L
159 if test -f cxxfilt.man; then \
160 man=cxxfilt.man; \
161 else \
162 man=$(srcdir)/cxxfilt.man; \
163 fi; \
4258bf4d 164 sed -e 's/@PROGRAM@/$(DEMANGLER_NAME)/' \
38131e67 165 -e 's/cxxfilt/$(DEMANGLER_NAME)/' < $$man \
c45021f2
NC
166 > $(DEMANGLER_NAME).1
167
7562a296
HPN
168# We want install to imply install-info as per GNU standards, despite the
169# cygnus option.
42ecbf5e 170install-data-local: install-info
7562a296 171
c428fa83 172MAINTAINERCLEANFILES = binutils.info
d5fbea21
DJ
173
174# Automake 1.9 will only build info files in the objdir if they are
175# mentioned in DISTCLEANFILES. It doesn't have to be unconditional,
176# though, so we use a bogus condition.
177if GENINSRC_NEVER
178DISTCLEANFILES = binutils.info
179endif
180
c45021f2
NC
181# Maintenance
182
183# We need it for the taz target in ../../Makefile.in.
42ecbf5e 184info-local: $(MANS)
This page took 0.389841 seconds and 4 git commands to generate.