bug-automake
[Top][All Lists]
Advanced

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

Processing of automake comments


From: Stepan Kasal
Subject: Processing of automake comments
Date: Mon, 4 Apr 2005 14:40:05 +0200
User-agent: Mutt/1.4.1i

Hello,
        in automake/lib/am/lisp.am, I noticed code like this:

$(am__ELCFILES): elc-stamp
        [...]
          if mkdir elc-lock 2>/dev/null; then \
## This code is being executed by the first process.
            rm -f elc-stamp; \

This motivated me to try this:

foo_rule = echo Refreshing $@ && \
## First, define some variables
        program=`expr '$*' : '.*/\([^/*\)'` && \
## Then run foo
        echo foo && \
        foo $<

I hoped that Automake will strip the ## comments and the rest will be used
to define the variable.  But Automake 1.9.5 failed to do this.  The lines
were spread to different parts of the makefile.

I'm not sure, but the fact that the line

        program=`expr '$*' : '.*/\([^/*\)'` && \

looks as a definition of make variable `program', could have contribute to
the problem.

Could you please fix this?

Thank you for all your work,
        Stepan Kasal




reply via email to

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