Markus Neteler wrote:

> ok - reverted. If you come across another one cause by me,
> please revert directly in CVS. It seems that Makefile rules 
> remain mysterious for me :-)
> I got inspired by
> 
> http://grass.itc.it/pipermail/grass-commit/2007-October/030502.html

You moved it one line too far; PGM must be set before including
Module.make.

In general, the point at which variables get defined doesn't matter if
they are only used in commands, but it matters if they are used in the
dependency line.

Essentially, dependency lines get expanded at the point they are read,
while commands are expanded at the point they are executed.

AFAICT, the list of variables where the order is significant is:

        PGM
        LIB_NAME
        SUBDIRS
        CMD_OBJS
        LIB_OBJS
        LOCAL_HEADERS
        EXTRA_HEADERS
        DEPENDENCIES

-- 
Glynn Clements <[EMAIL PROTECTED]>

_______________________________________________
grass-dev mailing list
[email protected]
http://grass.itc.it/mailman/listinfo/grass-dev

Reply via email to