[GRASS-dev] make install targets?

Markus Neteler neteler at osgeo.org
Sun Apr 12 09:46:35 EDT 2009


On Sun, Apr 12, 2009 at 3:32 PM, Glynn Clements
<glynn at gclements.plus.com> wrote:
>
> Markus Neteler wrote:
>
>> >>> Realistically, this should wait for 6.4/7.x, when the build system
>> >>> will get cleaned up to make it easier to build modules against an
>> >>> installed version of GRASS.
>> >>
>> >> I would still appreciate a generic "make install" - is that now feasible?
>>
>> I have added a
>> make install
>> target to 6.4.0svn and 6.5svn. No idea how to do it for 7.
>>
>> It doesn't yet work for multi-targets such as r.mapcalc/r3.mapcalc but
>> it also doesn't interfere. So at least GRASS Addons can now be
>> installed easily with
>>
>> make MODULE_TOPDIR=$HOME/grass64/
>> make MODULE_TOPDIR=$HOME/grass64/ install
>
> Wouldn't it be simpler to just point ARCH_DISTDIR at the installed
> version?

I don't know.

Note: The "make install" is also convenient if you want to update,
install and test only a single module in the main GRASS
source code (imagine you run in a shared production environment and
don't want to run "make install" globally but just for a specific module
to not touch the rest). A problem which I regularly have.
The submitted solution won't be brilliant (me & Makefiles... ) but works
for single modules. Improvements are welcome.

Markus


More information about the grass-dev mailing list