[Top][All Lists]

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

Re: Bitten by syntax error

From: Alexandre Duret-Lutz
Subject: Re: Bitten by syntax error
Date: Wed, 08 Sep 2004 07:43:21 +0200
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux)

| A number of times I have been bitten by missing backslashes at the end
| of lines.  Automake does not warn.  A typical example is:
| if !HasX11
|       tests/ \
|       tests/ \
|       tests/ \
|       tests/ \
|       tests/ \
|       tests/ \
|       tests/ \
|       tests/
| endif
| Is there a way that Automake can reasonably produce warnings in this
| case?

Not now.
| Another issue with backslashes that I have encountered is that
| Automake doesn't like them at the end of comment lines.  It will issue
| a diagnostic for
| #  some text \
| #  some more text \

Use `##' if you really want to suppress a line.

| It seems to me that the comment should override the line continuation
| request.

This happens in *some* Make implementations.  However this is
contrary to POSIX.  See `Escaped newline in comments' paragraph
in the `Limitations of Make' section of the Autoconf manual.

Alexandre Duret-Lutz

reply via email to

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