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