On Jan 13, 2011, at 10:07 AM, Tom Browder wrote:

> I was scanning commits and saw one from Sean which corrected a missing
> line continuation backslash in a Makefile.am:
>
>  EXTRA_DIST = \
>        $(man_MANS) \
> -       timetester.c
> +       timetester.c \
>        CMakeLists.txt
>
> Is there any reason not to use the form:

Automake 1.6 doesn't have support for the += operator.  Mac OS X 10.4  
shipped with 1.6.3 so if you want to support building from checkout  
on an unmodified 10.4 system, you can't use that operator.

As soon as support for 10.4 is dropped, we'll be able to drop the  
slashes.  More likely, though, cmake will be ready before then.

> EXTRA_DIST  =      # ensure empty list
> EXTRA_DIST +=      $(man_MANS)
> EXTRA_DIST +=      CMakeLists.txt
>
> It would make it less likely to miss the (ugly) backslash, and it
> would make it easier to sort the list if desired.

How so?  M-x sort-lines works the same on += lines as it does on \- 
terminated lines.

Cheers!
Sean


------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
BRL-CAD Developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-devel

Reply via email to