[GRASS-SVN] r53326 - in grass/branches/releasebranch_6_4: gui lib

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Oct 6 10:00:17 PDT 2012


Author: neteler
Date: 2012-10-06 10:00:17 -0700 (Sat, 06 Oct 2012)
New Revision: 53326

Modified:
   grass/branches/releasebranch_6_4/gui/Makefile
   grass/branches/releasebranch_6_4/lib/Makefile
Log:
enable Python code compilation only if Python present (fixes trac #1758)

Modified: grass/branches/releasebranch_6_4/gui/Makefile
===================================================================
--- grass/branches/releasebranch_6_4/gui/Makefile	2012-10-06 03:08:12 UTC (rev 53325)
+++ grass/branches/releasebranch_6_4/gui/Makefile	2012-10-06 17:00:17 UTC (rev 53326)
@@ -1,9 +1,14 @@
 MODULE_TOPDIR = ..
 
-SUBDIRS = icons images scripts xml tcltk wxpython
+SUBDIRS = icons images scripts xml tcltk
 
 include $(MODULE_TOPDIR)/include/Make/Platform.make
 
+#compile if python present:
+ifneq ($(USE_PYTHON),)
+    SUBDIRS += wxpython
+endif
+
 include $(MODULE_TOPDIR)/include/Make/Dir.make
 
 default: parsubdirs

Modified: grass/branches/releasebranch_6_4/lib/Makefile
===================================================================
--- grass/branches/releasebranch_6_4/lib/Makefile	2012-10-06 03:08:12 UTC (rev 53325)
+++ grass/branches/releasebranch_6_4/lib/Makefile	2012-10-06 17:00:17 UTC (rev 53326)
@@ -35,8 +35,7 @@
 	init \
 	cdhc \
 	stats \
-	arraystats \
-	python
+	arraystats
 
 include $(MODULE_TOPDIR)/include/Make/Platform.make
 
@@ -58,6 +57,11 @@
     SUBDIRS += iostream
 endif
 
+#compile if python present:
+ifneq ($(USE_PYTHON),)
+    SUBDIRS += python
+endif
+
 include $(MODULE_TOPDIR)/include/Make/Dir.make
 
 default: headers



More information about the grass-commit mailing list