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