[GRASS-dev] Tip: Compile addons with make MODULE_TOPDIR=/usr/lib/grass70

Vaclav Petras wenzeslaus at gmail.com
Sat May 21 21:06:36 PDT 2016


On Sat, May 21, 2016 at 4:24 PM, <svn_grass at osgeo.org> wrote:

> Author: amuriy
> Date: 2016-05-21 13:24:32 -0700 (Sat, 21 May 2016)
> New Revision: 68480
>
> Added:
>    grass-addons/grass7/vector/v.explode/
>    grass-addons/grass7/vector/v.explode/Makefile
>    grass-addons/grass7/vector/v.explode/v.explode.html
>    grass-addons/grass7/vector/v.explode/v.explode.py
> Modified:
>    grass-addons/grass7/vector/v.delaunay3d/Makefile
> Log:
> <v.explode> script added
>
> Modified: grass-addons/grass7/vector/v.delaunay3d/Makefile
> ===================================================================
> --- grass-addons/grass7/vector/v.delaunay3d/Makefile    2016-05-20
> 21:01:30 UTC (rev 68479)
> +++ grass-addons/grass7/vector/v.delaunay3d/Makefile    2016-05-21
> 20:24:32 UTC (rev 68480)
> @@ -1,4 +1,4 @@
> -MODULE_TOPDIR = ../..
> +MODULE_TOPDIR = /usr/lib/grass70
>
>  PGM = v.delaunay3d
>

Hi Alexander,

just small tip which might be of interest to other contributors to Addons
as well.

There is no need to change the source code to achieve compilation of module
outside of GRASS source code. You can just run make like this:

make MODULE_TOPDIR=/usr/lib/grass70

and you avoid these things being committed (because you never need to add
them to the source code). Martin was so kind and already put that line
back. So now everything is fine.

Looking forward to more commits,
Vaclav

https://trac.osgeo.org/grass/changeset/68480
https://trac.osgeo.org/grass/changeset/68481
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20160522/ec06ac67/attachment.html>


More information about the grass-dev mailing list