automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Use of really long lines in Makefile.in


From: J.T. Conklin
Subject: Re: Use of really long lines in Makefile.in
Date: Thu, 03 Feb 2005 21:49:39 -0800
User-agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Security Through Obscurity, berkeley-unix)

Albert Chin <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]