[GRASSLIST:8425] rapid testing of compiled GRASS modules ?

Hi,

Is there a quick way of working on a single grass module's source code,
without having to recompile the entire GRASS codebase ?

right now I am doing things like this:

in the GRASS6-cvs root folder
1. configure
2. make
3. adjust a single modules source code
4. make in the modified module's directory
---> results in a new object file
5. make from the grass root dir\
--->makes binary files
6. make install

... but this takes oh so long...

any tips?

thanks!

--
Dylan Beaudette
Soils and Biogeochemistry Graduate Group
University of California at Davis
530.754.7341

Hi,

2005/9/26, Dylan Beaudette <dylan@iici.no-ip.org>:

in the GRASS6-cvs root folder
1. configure
2. make

make install

3. adjust a single modules source code
4. make in the modified module's directory
---> results in a new object file

INST_NOW=y make

see file INSTALL for more information...

Martin

On Mon, 26 Sep 2005 15:10:58 -0700
Dylan Beaudette <dylan@iici.no-ip.org> wrote:

Hi,

Is there a quick way of working on a single grass module's source code,
without having to recompile the entire GRASS codebase ?

right now I am doing things like this:

in the GRASS6-cvs root folder
1. configure
2. make
3. adjust a single modules source code
4. make in the modified module's directory
---> results in a new object file
5. make from the grass root dir\
--->makes binary files
6. make install

... but this takes oh so long...

any tips?

thanks!

AFAIK, you shouldn't have to re-configure over and over or even recompile the whole thing. I would just go to the source directory where you are working on the code and run make there, then go to the root folder and run make install.

I haven't tried it but I think it should work.

T
--
Trevor Wiens
twiens@interbaun.com

The greatest obstacle to discovery is not ignorance - it is the illusion of knowledge.
(Daniel J. Boorstin)

Is there a quick way of working on a single grass module's source
code, without having to recompile the entire GRASS codebase ?

sure. From the INSTALL file that comes with the source code:

COMPILING INDIVIDUAL MODULES - OWN MODULES

Compiling self-made GRASS modules or modified modules:
Simply run "make" in the appropriate directory
and then install with "INST_NOW=y make".
It is not necessary to install the full distribution.
You may want to make an alias: alias gmake='INST_NOW=y make'

Personally I run grass directly out of the build dir and never install
it, so I just run "make" from the module's dir and that's enough.

Hamish