[GRASS-dev] Makefile change in r.out.tiff

Markus,

your recent change in the Makefile of r.out.tiff causes compilation to fail for me:

~/SRC/GRASS/grass6/raster/r.out.tiff$ make
make /home/mlennert/SRC/GRASS/grass6/dist.i486-pc-linux-gnu/docs/html/r.out.tiff.html HTMLSRC=/home/mlennert/SRC/GRASS/grass6/dist.i486-pc-linux-gnu/bin/r.out.tiff
make[1]: entrant dans le répertoire « /home/mlennert/SRC/GRASS/grass6/raster/r.out.tiff »
make[1]: *** Pas de règle pour fabriquer la cible « /home/mlennert/SRC/GRASS/grass6/dist.i486-pc-linux-gnu/docs/html/r.out.tiff.html ». Arrêt.
make[1]: quittant le répertoire « /home/mlennert/SRC/GRASS/grass6/raster/r.out.tiff »
make: *** [htmlcmd] Erreur 2

Reverting to the previous version makes it compile again.

Moritz

Moritz,

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 :slight_smile:
I got inspired by

http://grass.itc.it/pipermail/grass-commit/2007-October/030502.html

Markus

Moritz Lennert-2 wrote:

Markus,

your recent change in the Makefile of r.out.tiff causes compilation to
fail for me:

~/SRC/GRASS/grass6/raster/r.out.tiff$ make
make
/home/mlennert/SRC/GRASS/grass6/dist.i486-pc-linux-gnu/docs/html/r.out.tiff.html
HTMLSRC=/home/mlennert/SRC/GRASS/grass6/dist.i486-pc-linux-gnu/bin/r.out.tiff
make[1]: entrant dans le répertoire «
/home/mlennert/SRC/GRASS/grass6/raster/r.out.tiff »
make[1]: *** Pas de règle pour fabriquer la cible «
/home/mlennert/SRC/GRASS/grass6/dist.i486-pc-linux-gnu/docs/html/r.out.tiff.html
». Arrêt.
make[1]: quittant le répertoire «
/home/mlennert/SRC/GRASS/grass6/raster/r.out.tiff »
make: *** [htmlcmd] Erreur 2

Reverting to the previous version makes it compile again.

Moritz

--
View this message in context: http://www.nabble.com/Makefile-change-in-r.out.tiff-tf4630721.html#a13228375
Sent from the Grass - Dev mailing list archive at Nabble.com.

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 :slight_smile:
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@gclements.plus.com>