Commit | Line | Data |
---|---|---|
c45021f2 NC |
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 | ||
38fc1cb1 | 11 | TEXI2POD = perl $(top_srcdir)/../etc/texi2pod.pl $(AM_MAKEINFOFLAGS) |
c45021f2 | 12 | |
c7c55b78 NC |
13 | POD2MAN = pod2man --center="GNU Development Tools" \ |
14 | --release="binutils-$(VERSION)" --section=1 | |
c45021f2 NC |
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 \ | |
692ed3e7 | 31 | windmc.1 \ |
c45021f2 NC |
32 | $(DEMANGLER_NAME).1 |
33 | ||
34 | info_TEXINFOS = binutils.texi | |
42ecbf5e | 35 | binutils_TEXI = $(srcdir)/binutils.texi |
c45021f2 | 36 | |
c428fa83 | 37 | AM_MAKEINFOFLAGS = -I "$(srcdir)" -I "$(top_srcdir)/../libiberty" \ |
9975e4c4 | 38 | -I "$(top_srcdir)/../bfd/doc" -I ../../bfd/doc |
c428fa83 | 39 | TEXI2DVI = texi2dvi -I "$(srcdir)" -I "$(top_srcdir)/../libiberty" \ |
9975e4c4 | 40 | -I "$(top_srcdir)/../bfd/doc" -I ../../bfd/doc |
c45021f2 | 41 | |
c45021f2 | 42 | # Man page generation from texinfo |
f33e8c5b | 43 | addr2line.1: $(binutils_TEXI) $(binutils_TEXINFOS) |
c45021f2 | 44 | touch $@ |
75aa6618 | 45 | -$(TEXI2POD) $(MANCONF) -Daddr2line < $(binutils_TEXI) > addr2line.pod |
4258bf4d | 46 | -($(POD2MAN) addr2line.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \ |
c45021f2 | 47 | mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1) |
4258bf4d | 48 | rm -f addr2line.pod |
c45021f2 | 49 | |
f33e8c5b | 50 | ar.1: $(binutils_TEXI) $(binutils_TEXINFOS) |
c45021f2 | 51 | touch $@ |
75aa6618 | 52 | -$(TEXI2POD) $(MANCONF) -Dar < $(binutils_TEXI) > ar.pod |
4258bf4d | 53 | -($(POD2MAN) ar.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \ |
c45021f2 | 54 | mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1) |
4258bf4d | 55 | rm -f ar.pod |
c45021f2 | 56 | |
f33e8c5b | 57 | dlltool.1: $(binutils_TEXI) $(binutils_TEXINFOS) |
c45021f2 | 58 | touch $@ |
75aa6618 | 59 | -$(TEXI2POD) $(MANCONF) -Ddlltool < $(binutils_TEXI) > dlltool.pod |
4258bf4d | 60 | -($(POD2MAN) dlltool.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \ |
c45021f2 | 61 | mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1) |
4258bf4d | 62 | rm -f dlltool.pod |
c45021f2 | 63 | |
f33e8c5b | 64 | nlmconv.1: $(binutils_TEXI) $(binutils_TEXINFOS) |
c45021f2 | 65 | touch $@ |
75aa6618 | 66 | -$(TEXI2POD) $(MANCONF) -Dnlmconv < $(binutils_TEXI) > nlmconv.pod |
4258bf4d | 67 | -($(POD2MAN) nlmconv.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \ |
c45021f2 | 68 | mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1) |
4258bf4d | 69 | rm -f nlmconv.pod |
c45021f2 | 70 | |
f33e8c5b | 71 | nm.1: $(binutils_TEXI) $(binutils_TEXINFOS) |
c45021f2 | 72 | touch $@ |
75aa6618 | 73 | -$(TEXI2POD) $(MANCONF) -Dnm < $(binutils_TEXI) > nm.pod |
4258bf4d | 74 | -($(POD2MAN) nm.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \ |
c45021f2 | 75 | mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1) |
4258bf4d | 76 | rm -f nm.pod |
c45021f2 | 77 | |
f33e8c5b | 78 | objcopy.1: $(binutils_TEXI) $(binutils_TEXINFOS) |
c45021f2 | 79 | touch $@ |
75aa6618 | 80 | -$(TEXI2POD) $(MANCONF) -Dobjcopy < $(binutils_TEXI) > objcopy.pod |
4258bf4d | 81 | -($(POD2MAN) objcopy.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \ |
c45021f2 | 82 | mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1) |
4258bf4d | 83 | rm -f objcopy.pod |
c45021f2 | 84 | |
f33e8c5b | 85 | objdump.1: $(binutils_TEXI) $(binutils_TEXINFOS) |
c45021f2 | 86 | touch $@ |
75aa6618 | 87 | -$(TEXI2POD) $(MANCONF) -Dobjdump < $(binutils_TEXI) > objdump.pod |
4258bf4d | 88 | -($(POD2MAN) objdump.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \ |
c45021f2 | 89 | mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1) |
4258bf4d | 90 | rm -f objdump.pod |
c45021f2 | 91 | |
f33e8c5b | 92 | ranlib.1: $(binutils_TEXI) $(binutils_TEXINFOS) |
c45021f2 | 93 | touch $@ |
75aa6618 | 94 | -$(TEXI2POD) $(MANCONF) -Dranlib < $(binutils_TEXI) > ranlib.pod |
4258bf4d | 95 | -($(POD2MAN) ranlib.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \ |
c45021f2 | 96 | mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1) |
4258bf4d | 97 | rm -f ranlib.pod |
c45021f2 | 98 | |
f33e8c5b | 99 | readelf.1: $(binutils_TEXI) $(binutils_TEXINFOS) |
c45021f2 | 100 | touch $@ |
75aa6618 | 101 | -$(TEXI2POD) $(MANCONF) -Dreadelf < $(binutils_TEXI) > readelf.pod |
4258bf4d | 102 | -($(POD2MAN) readelf.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \ |
c45021f2 | 103 | mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1) |
4258bf4d | 104 | rm -f readelf.pod |
c45021f2 | 105 | |
f33e8c5b | 106 | size.1: $(binutils_TEXI) $(binutils_TEXINFOS) |
c45021f2 | 107 | touch $@ |
75aa6618 | 108 | -$(TEXI2POD) $(MANCONF) -Dsize < $(binutils_TEXI) > size.pod |
4258bf4d | 109 | -($(POD2MAN) size.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \ |
c45021f2 | 110 | mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1) |
4258bf4d | 111 | rm -f size.pod |
c45021f2 | 112 | |
f33e8c5b | 113 | strings.1: $(binutils_TEXI) $(binutils_TEXINFOS) |
c45021f2 | 114 | touch $@ |
75aa6618 | 115 | -$(TEXI2POD) $(MANCONF) -Dstrings < $(binutils_TEXI) > strings.pod |
4258bf4d | 116 | -($(POD2MAN) strings.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \ |
c45021f2 | 117 | mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1) |
4258bf4d | 118 | rm -f strings.pod |
c45021f2 | 119 | |
f33e8c5b | 120 | strip.1: $(binutils_TEXI) $(binutils_TEXINFOS) |
c45021f2 | 121 | touch $@ |
75aa6618 | 122 | -$(TEXI2POD) $(MANCONF) -Dstrip < $(binutils_TEXI) > strip.pod |
4258bf4d | 123 | -($(POD2MAN) strip.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \ |
c45021f2 | 124 | mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1) |
4258bf4d | 125 | rm -f strip.pod |
c45021f2 | 126 | |
f33e8c5b | 127 | windres.1: $(binutils_TEXI) $(binutils_TEXINFOS) |
c45021f2 | 128 | touch $@ |
75aa6618 | 129 | -$(TEXI2POD) $(MANCONF) -Dwindres < $(binutils_TEXI) > windres.pod |
4258bf4d | 130 | -($(POD2MAN) windres.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \ |
c45021f2 | 131 | mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1) |
4258bf4d | 132 | rm -f windres.pod |
c45021f2 | 133 | |
692ed3e7 NC |
134 | windmc.1: $(binutils_TEXI) $(binutils_TEXINFOS) |
135 | touch $@ | |
136 | -$(TEXI2POD) $(MANCONF) -Dwindmc < $(binutils_TEXI) > windmc.pod | |
137 | -($(POD2MAN) windmc.pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \ | |
138 | mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1) | |
139 | rm -f windmc.pod | |
140 | ||
f33e8c5b | 141 | cxxfilt.man: $(binutils_TEXI) $(binutils_TEXINFOS) |
c45021f2 | 142 | touch $@ |
75aa6618 | 143 | -$(TEXI2POD) $(MANCONF) -Dcxxfilt < $(binutils_TEXI) > $(DEMANGLER_NAME).pod |
4258bf4d | 144 | -($(POD2MAN) $(DEMANGLER_NAME).pod | sed -e '/^.if n .na/d' > $@.T$$$$ && \ |
c45021f2 | 145 | mv -f $@.T$$$$ $@) || (rm -f $@.T$$$$ && exit 1) |
4258bf4d | 146 | rm -f $(DEMANGLER_NAME).pod |
c45021f2 | 147 | |
c45021f2 NC |
148 | MOSTLYCLEANFILES = $(DEMANGLER_NAME).1 |
149 | ||
150 | $(DEMANGLER_NAME).1: cxxfilt.man Makefile | |
38131e67 L |
151 | if test -f cxxfilt.man; then \ |
152 | man=cxxfilt.man; \ | |
153 | else \ | |
154 | man=$(srcdir)/cxxfilt.man; \ | |
155 | fi; \ | |
4258bf4d | 156 | sed -e 's/@PROGRAM@/$(DEMANGLER_NAME)/' \ |
38131e67 | 157 | -e 's/cxxfilt/$(DEMANGLER_NAME)/' < $$man \ |
c45021f2 NC |
158 | > $(DEMANGLER_NAME).1 |
159 | ||
7562a296 HPN |
160 | # We want install to imply install-info as per GNU standards, despite the |
161 | # cygnus option. | |
42ecbf5e | 162 | install-data-local: install-info |
7562a296 | 163 | |
c428fa83 | 164 | MAINTAINERCLEANFILES = binutils.info |
d5fbea21 DJ |
165 | |
166 | # Automake 1.9 will only build info files in the objdir if they are | |
167 | # mentioned in DISTCLEANFILES. It doesn't have to be unconditional, | |
168 | # though, so we use a bogus condition. | |
169 | if GENINSRC_NEVER | |
170 | DISTCLEANFILES = binutils.info | |
171 | endif | |
172 | ||
c45021f2 NC |
173 | # Maintenance |
174 | ||
175 | # We need it for the taz target in ../../Makefile.in. | |
42ecbf5e | 176 | info-local: $(MANS) |