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]

Re: cvs issues with .info files...


Daniel Jacobowitz dixit:

>On Mon, Jul 04, 2005 at 11:20:24AM +0100, Dave Korn wrote:
>> ----Original Message----
>> >From: Mike Frysinger
>> >Sent: 04 July 2005 11:14
>> 
>> > On Monday 04 July 2005 06:08 am, Ravi Ramaseshan wrote:
>> >> Is there any reason why these info files are generated into the source
>> >> directory ? Shouldn't they be generated into the build directory
>> >> instead?
>> > 
>> > they are ... not everyone builds in a diff tree from the source code
>> > though -mike
>> 
>>   They aren't: they are always generated in the source tree.  It's a quirk.
>
>More specifically, it is an automake limitation and I have not gotten
>sufficiently frustrated to fix it.

I was.

Sample for as:

Index: Makefile.am
===================================================================
RCS file: /cvs/src/gnu/usr.bin/binutils/gas/doc/Makefile.am,v
retrieving revision 1.1.101.4
retrieving revision 1.4
diff -p -a -u -rFSF -r1.4
--- Makefile.am	5 Jun 2005 17:45:39 -0000	1.1.101.4
+++ Makefile.am	5 Jun 2005 21:24:14 -0000	1.4
@@ -63,9 +67,6 @@ gasver.texi: $(srcdir)/../../bfd/configu
 	eval `grep '^ *VERSION=' $(srcdir)/../../bfd/configure`; \
 	  echo "@set VERSION $$VERSION" > $@
 
-$(srcdir)/as.info: $(srcdir)/as.texinfo asconfig.texi gasver.texi $(CPU_DOCS)
-as.dvi: $(srcdir)/as.texinfo asconfig.texi gasver.texi $(CPU_DOCS)
-
 # We want install to imply install-info as per GNU standards, despite the
 # cygnus option.
 install-data-local: install-info
@@ -74,6 +75,8 @@ install-data-local: install-info
 
 noinst_TEXINFOS = internals.texi
 
+DISTCLEANFILES = asconfig.texi as.info as.info-*
+
 MAINTAINERCLEANFILES = asconfig.texi gasver.texi
 
 BASEDIR = $(srcdir)/../..


And regenerate with automake 1.9. I don't know if that would work
on the "pristine" GNU tools (we BSD people have our patched tools)
but I think so. This is an excerpt from a larger diff, that's why
the line numbers don't seem to fit.

If you desire, I can try to dig them all out; I don't have a box
running a GNU OS to test, though.

bye,
//mirabile
-- 
I believe no one can invent an algorithm. One just happens to hit upon it
when God enlightens him. Or only God invents algorithms, we merely copy them.
If you don't believe in God, just consider God as Nature if you won't deny
existence.		-- Coywolf Qi Hunt


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