[GRASS-dev] Re: [GRASS-SVN] r49122 -
grass/branches/develbranch_6/include/Make
Glynn Clements
glynn at gclements.plus.com
Tue Nov 8 02:48:40 EST 2011
Martin Landa wrote:
> MODULE_TOPDIR refers to the source code dir, not the installed
> ARCH_DISTDIR. see the first line of the main Makefile.
Specifically, it refers to the base directory from which the *.make
files are located. Makefiles access the *.make files via e.g.:
include $(MODULE_TOPDIR)/include/Make/Module.make
Each Makefile sets MODULE_TOPDIR itself as a relative path, but like
all make variables this can be overridden on the command line.
Unlike other directories, MODULE_TOPDIR cannot be set in *.make
because it's used to find the *.make files, so it has to be set in the
individual Makefiles or on the command line.
MODULE_TOPDIR should not be used for any other purpose. In particular,
Man.make should not be using MODULE_TOPDIR to locate g.html2man.
If g.html2man is required in order to build add-ons, then it should be
installed as part of the GRASS build process, and subsequently
referenced via $(GISBASE), as is done in 7.0.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list