This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: toplevel Makefile.in: autogenerate more
- From: DJ Delorie <dj at delorie dot com>
- To: neroden at doctormoo dot dyndns dot org
- Cc: gcc-patches at gcc dot gnu dot org, binutils at sources dot redhat dot com, gdb-patches at sources dot redhat dot com
- Date: Tue, 24 Sep 2002 19:46:21 -0400
- Subject: Re: toplevel Makefile.in: autogenerate more
- References: <20020924233633.GA22064@doctormoo.dyndns.org>
> +# Rebuilding Makefile.in, using autogen.
> +$(srcdir)/Makefile.in: $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def
> + cd $(srcdir) && autogen Makefile.def
As much as I like automation, this rule is bad. Not everyone has
autogen, and those who don't shouldn't get penalized if they happen to
get the timestamps rearranged. IIRC back when we were discussing
using autogen, we decided that Makefile.in would not normally be built
automatically, to avoid such things.
It may be acceptable to make this target conditional on
--enable-maintainer-mode, since maintainers are expected to have all
the esoteric packages required for regens.
Perhaps, for now, the rule could stay if it had a .PHONY target?