This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] binutils/: Remove the dependency on ancient automake


Hello,

 I've noticed binutils/Makefile.in has been generated with a severely 
obsolete version of automake and actually a snapshot of some sort rather 
than a release (1.4-p6; my records show it's about four years old).  
Having processed it with version 1.9.4 I've discovered a few minor 
glitches in the doc/ subdirectory resulting from using fragile constructs 
that do not work anymore.

 Here is a fix.  It changes the problematic constructs to ones that have 
been documented on automake info pages.  They should still work will 
1.4-p6, but I think there is no point in staying tied to old bugs, so I'd 
like to regenerate scripts using a recent version of automake.  Besides 
ld/ this is the only subdirectory still using a pre-1.9 automake and I 
have a separate patch for ld/ as well.

  The resulting Makefiles have been successfully used for building:

1. Natively for mipsel-linux-gnu and i386-linux-gnu.

2. Cross-binutils for i386-linux-gnu host with the mipsel-linux-gnu and 
   mips64el-linux-gnu targets.

3. Crossed native binutils for the mips64el-linux-gnu host using an 
   i386-linux-gnu build system.

2005-04-14  Maciej W. Rozycki  <macro@linux-mips.org>

	* doc/Makefile.am (binutils.dvi, binutils.info): Remove, moving
	the dependency on config.texi to...
	(binutils_TEXINFOS): ... here.
	(install): Rename goal to...
	(install-data-local): ... this, to preserve implicit dependencies.
	(info): Likewise, to...
	(info-local). ... this.
	* doc/Makefile.in: Regenerate with automake 1.9.4.
	* aclocal.m4: Regenerate.
	* config.in: Regenerate.
	* configure: Regenerate.

 I might consider using 1.9.5, but it shouldn't really matter as it only 
adds minor changes, but it's been packaged with autoconf 2.59c which 
introduces updates to the GNU Coding Standards affecting 
installation directories and therefore I'm somewhat hesitant about rushing 
with an upgrade.

 OK to apply? -- for the mainline of course.

  Maciej

binutils-2.15.96-20050331-binutils-info.patch
diff -up --recursive --new-file binutils-2.15.96-20050331.macro/binutils/doc/Makefile.am binutils-2.15.96-20050331/binutils/doc/Makefile.am
--- binutils-2.15.96-20050331.macro/binutils/doc/Makefile.am	2004-12-08 02:50:40.000000000 +0000
+++ binutils-2.15.96-20050331/binutils/doc/Makefile.am	2005-04-11 11:25:45.000000000 +0000
@@ -31,6 +31,7 @@ man_MANS = \
 	$(DEMANGLER_NAME).1
 
 info_TEXINFOS = binutils.texi
+binutils_TEXINFOS = config.texi
 
 config.texi: Makefile
 	rm -f config.texi
@@ -39,10 +40,6 @@ config.texi: Makefile
 
 binutils_TEXI = $(srcdir)/binutils.texi
 
-binutils.dvi:  $(binutils_TEXI) config.texi
-
-binutils.info: $(binutils_TEXI) config.texi
-
 # Man page generation from texinfo
 addr2line.1:	$(binutils_TEXI)
 	touch $@
@@ -158,9 +155,9 @@ $(DEMANGLER_NAME).1: cxxfilt.man Makefil
 
 # We want install to imply install-info as per GNU standards, despite the
 # cygnus option.
-install: install-info
+install-data-local: install-info
 
 # Maintenance
 
 # We need it for the taz target in ../../Makefile.in.
-info: $(MANS)
+info-local: $(MANS)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]