This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: Use of really long lines in Makefile.in
- From: jtc at acorntoolworks dot com (J.T. Conklin)
- To: automake at gnu dot org
- Date: Thu, 03 Feb 2005 21:49:39 -0800
- Subject: Re: Use of really long lines in Makefile.in
- References: <20050204050337.GA95781@mail1.thewrittenword.com>
- Reply-to: jtc at acorntoolworks dot com
Albert Chin <automake@mlists.thewrittenword.com> writes:
> So, should automake change lines like:
> foo_SOURCES = [long list of sources]
> to the following in Makefile.in:
> foo_SOURCES = $(foo_SOURCES_1) $(foo_SOURCES_2) ...
> foo_SOURCES_1 = [list of sources < 2048 chars]
> foo_SOURCES_2 = [list of sources < 2048 chars]
> ...
automake's 1.9 NEWS entry includes:
- Variables aumented with `+=' are now automatically flattened (i.e.,
trailing backslashes removed) and then wrapped around 80 colummns
(adding trailing backslashes). In previous versions, a long series
of
VAR += value1
VAR += value2
VAR += value3
...
would result in a single-line definition of VAR that could possibly
exceed the maximum line length of some make implementations.
Non-augmented variables are still output as they are defined in
the Makefile.am.
flattening non-augmented variable assignments seems like a better
solution to the problem of too long lines.
In the mean time, maybe
foo_SOURCES =
foo_SOURCES += [ long list of sources ]
might just work.
--jtc
--
J.T. Conklin