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