[GRASS-SVN] r48244 -
grass/branches/develbranch_6/scripts/g.extension
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Sep 12 04:01:45 EDT 2011
Author: hamish
Date: 2011-09-12 01:01:45 -0700 (Mon, 12 Sep 2011)
New Revision: 48244
Modified:
grass/branches/develbranch_6/scripts/g.extension/g.extension
Log:
more variables needed for building addons on a machine which doesn't have the full source code
Modified: grass/branches/develbranch_6/scripts/g.extension/g.extension
===================================================================
--- grass/branches/develbranch_6/scripts/g.extension/g.extension 2011-09-12 06:20:27 UTC (rev 48243)
+++ grass/branches/develbranch_6/scripts/g.extension/g.extension 2011-09-12 08:01:45 UTC (rev 48244)
@@ -281,11 +281,20 @@
cd "$TMPDIR/$MODULE"
g.message message="Compiling <$MODULE>..."
+
+# $INST_NOW helps compile and install modules directly into $(INST_DIR)
+# without having to install whole distribution even after modifying only
+# one module. It will update both $(GRASS_HOME)/dist.$(ARCH) and $(INST_DIR).
+# see $GISBASE/include/Make/Grass.make
+INST_NOW=true
+export INST_NOW
+
make MODULE_TOPDIR="$GISBASE" \
ARCH_INC="-I$GISBASE/include -I${MYINST_DIR}/include -I$TMPDIR/dist/include" \
ARCH_LIBPATH="-L$GISBASE/lib -L${MYINST_DIR}/lib -L$TMPDIR/dist/lib" \
ARCH_LIBDIR="$GISBASE/lib" \
- ARCH_DISTDIR="$TMPDIR/dist"
+ ARCH_DISTDIR="$TMPDIR/dist" \
+ UNIX_BIN="$TMPDIR/bin"
if [ $? -ne 0 ] ; then
g.message -e message="Compilation failed, sorry. Please check above error messages."
More information about the grass-commit
mailing list