[GRASS-SVN] r54372 - in grass/trunk/lib/python/pygrass: . gis

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Dec 23 03:13:29 PST 2012


Author: zarch
Date: 2012-12-23 03:13:28 -0800 (Sun, 23 Dec 2012)
New Revision: 54372

Added:
   grass/trunk/lib/python/pygrass/gis/Makefile
Modified:
   grass/trunk/lib/python/pygrass/Makefile
Log:
Fix: makefile

Modified: grass/trunk/lib/python/pygrass/Makefile
===================================================================
--- grass/trunk/lib/python/pygrass/Makefile	2012-12-23 11:13:18 UTC (rev 54371)
+++ grass/trunk/lib/python/pygrass/Makefile	2012-12-23 11:13:28 UTC (rev 54372)
@@ -8,9 +8,9 @@
 GDIR = $(PYDIR)/grass
 DSTDIR = $(GDIR)/pygrass
 
-MODULES = errors functions orderdict region
+MODULES = errors functions orderdict
 
-CLEAN_SUBDIRS = modules raster vector tests
+CLEAN_SUBDIRS = modules raster vector gis tests
 
 PYFILES := $(patsubst %,$(DSTDIR)/%.py,$(MODULES) __init__)
 PYCFILES := $(patsubst %,$(DSTDIR)/%.pyc,$(MODULES) __init__)

Copied: grass/trunk/lib/python/pygrass/gis/Makefile (from rev 54371, grass/trunk/lib/python/pygrass/Makefile)
===================================================================
--- grass/trunk/lib/python/pygrass/gis/Makefile	                        (rev 0)
+++ grass/trunk/lib/python/pygrass/gis/Makefile	2012-12-23 11:13:28 UTC (rev 54372)
@@ -0,0 +1,32 @@
+MODULE_TOPDIR = ../../../..
+
+include $(MODULE_TOPDIR)/include/Make/Other.make
+include $(MODULE_TOPDIR)/include/Make/Python.make
+include $(MODULE_TOPDIR)/include/Make/Doxygen.make
+
+PYDIR = $(ETC)/python
+GDIR = $(PYDIR)/grass
+PGDIR = $(GDIR)/pygrass
+DSTDIR= $(PGDIR)/gis
+
+MODULES = region
+
+PYFILES := $(patsubst %,$(DSTDIR)/%.py,$(MODULES) __init__)
+PYCFILES := $(patsubst %,$(DSTDIR)/%.pyc,$(MODULES) __init__)
+
+default: $(PYFILES) $(PYCFILES) $(GDIR)/__init__.py $(GDIR)/__init__.pyc
+
+$(PYDIR):
+	$(MKDIR) $@
+
+$(GDIR): | $(PYDIR)
+	$(MKDIR) $@
+
+$(DSTDIR): | $(GDIR)
+	$(MKDIR) $@
+
+$(DSTDIR)/%: % | $(DSTDIR)
+	$(INSTALL_DATA) $< $@
+
+#doxygen:
+DOXNAME = pythonpygrass
\ No newline at end of file



More information about the grass-commit mailing list