automake
[Top][All Lists]
Advanced

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

Re: backslashes in variable definition


From: Andrew Suffield
Subject: Re: backslashes in variable definition
Date: Mon, 21 Jun 2004 20:48:36 +0100
User-agent: Mutt/1.5.6+20040523i

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


reply via email to

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