Hello,

On Wed, Sep 14, 2005 at 12:28:03AM +0200, Alexandre Duret-Lutz wrote:
> >>> "HD" == Harald Dunkel <[EMAIL PROTECTED]> writes:
>  HD> Would it be possible to tell Automake to print some
>  HD> warning message for this bad Makefile.am:
> 
>  HD> PreciousUtils_checker_SOURCES =
>  HD>         precious/Utils/unittest/src/SLListTest.cc \
>  HD>         precious/Utils/unittest/src/checker.cc
> 
> Not with the current parser. [...]
> Tabs are the only way for Automake to recognize rules.

but a rule should be formed by a line not starting with tab, followed
by several lines which do start with tab.

Otherwise, make complains.  Observe:
$ printf '\ta:\n\techo x\n'|make -f -
/tmp/GmbxV37f:1: *** commands commence before first target.  Stop.

The current parser recognizes the first line of the example above as
variable assignment, so it should then complain about "commands without
any target".

Have a nice day,
        Stepan Kasal


Reply via email to