[GRASS-SVN] r49620 - grass/branches/develbranch_6/include/Make

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Dec 8 07:19:10 EST 2011


Author: martinl
Date: 2011-12-08 04:19:10 -0800 (Thu, 08 Dec 2011)
New Revision: 49620

Modified:
   grass/branches/develbranch_6/include/Make/Rules.make
Log:
build: define PYTHONPATH for run_grass

Modified: grass/branches/develbranch_6/include/Make/Rules.make
===================================================================
--- grass/branches/develbranch_6/include/Make/Rules.make	2011-12-08 11:08:17 UTC (rev 49619)
+++ grass/branches/develbranch_6/include/Make/Rules.make	2011-12-08 12:19:10 UTC (rev 49620)
@@ -66,6 +66,15 @@
 %.tab.h %.tab.c: %.y
 	$(YACC) -b$* -p$* $(YACCFLAGS) $<
 
+ifneq ($(MINGW),)
+mkpath = $(shell $(TOOLSDIR)/g.echo$(EXE) $(1));$(2)
+else
+mkpath = $(1):$(2)
+endif
+
+GRASS_PYTHONPATH := $(call mkpath,$(GISBASE)/etc/python,$$PYTHONPATH)
+GRASS_PYTHONPATH := $(call mkpath,$(ARCH_DISTDIR)/etc/python,$(GRASS_PYTHONPATH))
+
 run_grass = \
 	GISRC=$(RUN_GISRC) \
 	GISBASE=$(RUN_GISBASE) \



More information about the grass-commit mailing list