[GRASS-dev] Makefile change in r.out.tiff
Glynn Clements
glynn at gclements.plus.com
Tue Oct 16 08:09:34 EDT 2007
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 <glynn at gclements.plus.com>
More information about the grass-dev
mailing list