[GRASS-dev] make MODULE_TOPDIR= not enforced on grass-addons building with trunk

cd $root/grass-addons/grass7/imagery
make MODULE_TOPDIR=$root/grass_trunk/

Makefile:19: ../include/Make/Dir.make: No such file or directory
make: *** No rule to make target `../include/Make/Dir.make'. Stop.

-----------------------------------
MODULE_TOPDIR = ..

# i.fusion.brovey deprecated

SUBDIRS = \
        i.eb.h_sebal95 \
        i.edge \
        i.evapo.potrad \
        i.evapo.senay \
        i.evapo.zk \
        i.gravity \
        i.histo.match \
        i.lmf \
        i.points.auto \
        i.rotate \
        i.segment \
        i.vi.mpi

include $(MODULE_TOPDIR)/include/Make/Dir.make

default: subdirs
---------------------------

--
Yann Chemin
Researcher@IWMI
Skype/FB: yann.chemin

On Mon, Apr 22, 2013 at 5:22 AM, Yann Chemin <yann.chemin@gmail.com> wrote:

cd $root/grass-addons/grass7/imagery
make MODULE_TOPDIR=$root/grass_trunk/

Makefile:19: ../include/Make/Dir.make: No such file or directory
make: *** No rule to make target `../include/Make/Dir.make'. Stop.

To me this error suggests that $root is undefined at your end.
Probably you wanted to write $HOME?

[neteler@oboe imagery]$ make MODULE_TOPDIR=$HOME/grass70

works just fine (the precompiled GRASS 7.svn is in my $HOME/grass70)

Markus

On 22 April 2013 21:20, Markus Neteler <neteler@osgeo.org> wrote:

On Mon, Apr 22, 2013 at 5:22 AM, Yann Chemin <yann.chemin@gmail.com> wrote:

cd $root/grass-addons/grass7/imagery
make MODULE_TOPDIR=$root/grass_trunk/

Makefile:19: ../include/Make/Dir.make: No such file or directory
make: *** No rule to make target `../include/Make/Dir.make'. Stop.

To me this error suggests that $root is undefined at your end.
Probably you wanted to write $HOME?

[neteler@oboe imagery]$ make MODULE_TOPDIR=$HOME/grass70

works just fine (the precompiled GRASS 7.svn is in my $HOME/grass70)

Markus

Hi Markus,

the problem seems to come from /grass-addons/grass7/imagery/Makefile

#make grass-addons/grass7/imagery
cd $HOME/grass_dev/grass-addons/grass7/imagery
make MODULE_TOPDIR=$HOME/grass_dev/grass70

...
Makefile:19: ../include/Make/Dir.make: No such file or directory
make: *** No rule to make target `../include/Make/Dir.make'. Stop.

...
Trying from
cd $HOME/grass_dev/grass-addons/grass7
make MODULE_TOPDIR=$HOME/grass_dev/grass70

I get the same result

--
Yann Chemin
Researcher@IWMI
Skype/FB: yann.chemin

On Tue, Apr 23, 2013 at 5:22 AM, Yann Chemin <yann.chemin@gmail.com> wrote:

the problem seems to come from /grass-addons/grass7/imagery/Makefile

I compared it to the corresponding raster/Makefile, no differences
which would be relevant here.

#make grass-addons/grass7/imagery
cd $HOME/grass_dev/grass-addons/grass7/imagery
make MODULE_TOPDIR=$HOME/grass_dev/grass70

...
Makefile:19: ../include/Make/Dir.make: No such file or directory
make: *** No rule to make target `../include/Make/Dir.make'. Stop.

Strange, no such problem here. Please check your make version, too.
I use

make -v
GNU Make 3.82

Markus

On 23 April 2013 13:38, Markus Neteler <neteler@osgeo.org> wrote:

On Tue, Apr 23, 2013 at 5:22 AM, Yann Chemin <yann.chemin@gmail.com> wrote:

the problem seems to come from /grass-addons/grass7/imagery/Makefile

I compared it to the corresponding raster/Makefile, no differences
which would be relevant here.

#make grass-addons/grass7/imagery
cd $HOME/grass_dev/grass-addons/grass7/imagery
make MODULE_TOPDIR=$HOME/grass_dev/grass70

...
Makefile:19: ../include/Make/Dir.make: No such file or directory
make: *** No rule to make target `../include/Make/Dir.make'. Stop.

Strange, no such problem here. Please check your make version, too.
I use

make -v
GNU Make 3.82

Markus

Hi Markus,

make -v
GNU Make 3.81

will see to upgrade the version...
Ciao,
Yann
--
Yann Chemin
Researcher@IWMI
Skype/FB: yann.chemin