This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: backslashes in variable definition


On Mon, Jun 21, 2004 at 04:38:23PM +0200, Volker Boerchers wrote:
> the _SOURCES values of our Makefile.am's are split into multiple lines
> to improve readability like this
> 
>   libfoo_la_SOURCES = \
> 	foo.c \
> 	bar.c
> 
> However if one forgets a backslash the source files after that are
> silently ignored by automake.
> 
>   libfoo_la_SOURCES = \
>         foo.c                  # missing '\' 
>         bar.c
> 
> These errors are hard to detect, at least for libraries since missing
> dependencies are detected later.

You should see the error you get if you do this:

libfoo_la_SOURCES = \
#        foo.c \
        bar.c

-- 
  .''`.  ** Debian GNU/Linux ** | Andrew Suffield
 : :' :  http://www.debian.org/ |
 `. `'                          |
   `-             -><-          |

Attachment: signature.asc
Description: Digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]