Selaa lähdekoodia

Fix: makefile

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@54372 15284696-431f-4ddb-bdfa-cd5b030d7da7
Pietro Zambelli 12 vuotta sitten
vanhempi
commit
beb4df9005
2 muutettua tiedostoa jossa 34 lisäystä ja 2 poistoa
  1. 2 2
      lib/python/pygrass/Makefile
  2. 32 0
      lib/python/pygrass/gis/Makefile

+ 2 - 2
lib/python/pygrass/Makefile

@@ -8,9 +8,9 @@ PYDIR = $(ETC)/python
 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__)

+ 32 - 0
lib/python/pygrass/gis/Makefile

@@ -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