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