This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: top level makefile.in
On Tue, Oct 01, 2002 at 09:42:03PM -0400, Hans-Peter Nilsson wrote:
> On Tue, 1 Oct 2002, Nathanael Nerode wrote:
> > I finished the reversion, so the build shouldn't be breaking.
>
> It still does, building binutils right after configure, as of
> 2002-10-02 00:00:23 GMT:
>
> cd . && autogen Makefile.def
> /bin/sh: autogen: command not found
Worse, configure is complaining about a missing "-e" command. I'm
applying the following obvious patch to configure, and have these
Makefile.in and Makefile.tpl patches in my local tree which I'm not
applying. I suppose the proper fix is only to enable the Makefile.in
rule when --enable-maintainer-mode.
ChangeLog
* configure: Move stray line back to where it belongs.
Index: configure
===================================================================
RCS file: /cvs/src/src/configure,v
retrieving revision 1.21
diff -u -p -r1.21 configure
--- configure 1 Oct 2002 23:21:50 -0000 1.21
+++ configure 2 Oct 2002 02:37:49 -0000
@@ -1410,7 +1410,6 @@ EOF
-e "s|^SHELL[ ]*=.*$|SHELL = ${config_shell}|" \
-e "s|^srcdir[ ]*=.*$|srcdir = ${makesrcdir}|" \
-e "s///" \
- ${subdir}/Makefile.tem >> ${Makefile}
-e "s:^program_suffix[ ]*=.*$:program_suffix = ${program_suffix}:" \
-e "s:^program_transform_name[ ]*=.*$:program_transform_name = ${program_transform_name}:" \
-e "s|^tooldir[ ]*=.*$|tooldir = ${tooldir}|" \
@@ -1418,6 +1417,7 @@ EOF
-e "s:^DEFAULT_YACC[ ]*=.*$:DEFAULT_YACC = ${DEFAULT_YACC}:" \
-e "s:^DEFAULT_LEX[ ]*=.*$:DEFAULT_LEX = ${DEFAULT_LEX}:" \
-e "s:^DEFAULT_M4[ ]*=.*$:DEFAULT_M4 = ${DEFAULT_M4}:" \
+ ${subdir}/Makefile.tem >> ${Makefile}
mv -f ${Makefile}.tem ${Makefile}
sed -e "s:^GDB_TK[ ]*=.*$:GDB_TK = ${GDB_TK}:" ${Makefile} >${Makefile}.tem
Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/Makefile.in,v
retrieving revision 1.71
diff -u -p -r1.71 Makefile.in
--- Makefile.in 30 Sep 2002 10:34:06 -0000 1.71
+++ Makefile.in 2 Oct 2002 02:37:48 -0000
@@ -1799,8 +1799,8 @@ etags tags: TAGS
TAGS: do-TAGS
# Rebuilding Makefile.in, using autogen.
-$(srcdir)/Makefile.in: # $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def
- cd $(srcdir) && autogen Makefile.def
+#$(srcdir)/Makefile.in: $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def
+# cd $(srcdir) && autogen Makefile.def
# with the gnu make, this is done automatically.
Index: Makefile.tpl
===================================================================
RCS file: /cvs/src/src/Makefile.tpl,v
retrieving revision 1.6
diff -u -p -r1.6 Makefile.tpl
--- Makefile.tpl 1 Oct 2002 23:35:42 -0000 1.6
+++ Makefile.tpl 2 Oct 2002 02:37:49 -0000
@@ -1499,8 +1499,8 @@ etags tags: TAGS
TAGS: do-TAGS
# Rebuilding Makefile.in, using autogen.
-$(srcdir)/Makefile.in: # $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def
- cd $(srcdir) && autogen Makefile.def
+#$(srcdir)/Makefile.in: $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def
+# cd $(srcdir) && autogen Makefile.def
# with the gnu make, this is done automatically.
--
Alan Modra
IBM OzLabs - Linux Technology Centre