[Top][All Lists]

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

Re: bug? $(warning)/$(error) evaluated from inside a comment in a 'defin

From: Stephan Beal
Subject: Re: bug? $(warning)/$(error) evaluated from inside a comment in a 'define'?
Date: Wed, 20 Jun 2007 15:07:40 +0200
User-agent: KMail/1.9.7

On Wednesday 20 June 2007, Philip Guenther wrote:
> On 6/19/07, Stephan Beal <address@hidden> wrote:
> Okay, so you've defined a variable, 'bogo', whose value consists of
> two lines, the first of which has a '#' as its first non-whitespace
> character.  It isn't a comment at that point, it's just a line with a
> leading '#'.

i see. That makes perfect sense, actually. My intuition told me that 
comments are skipped at an earlier parsing phase (e.g., filtered out 
long before the 'define'd item is called), but obviously that's not the 

> (Then there are comments in the commands for rules, where if they're
> indented with a tab then make sees them as normal parts of the
> commands and passes them to the shell...which then will often ignore
> them based on *its* rules.)

The book "Managin Projects with GNU Make" demonstrates using that as an 
intesting test/debugging feature instead of using 'echo':


Thanks for the clarification!


----- address@hidden

Attachment: signature.asc
Description: This is a digitally signed message part.

reply via email to

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