1MODULE_TOPDIR = ../../../..
2
3include $(MODULE_TOPDIR)/include/Make/Other.make
4include $(MODULE_TOPDIR)/include/Make/Python.make
5include $(MODULE_TOPDIR)/include/Make/Doxygen.make
6
7PYDIR = $(ETC)/python
8GDIR = $(PYDIR)/grass
9PGDIR = $(GDIR)/pygrass
10DSTDIR= $(PGDIR)/raster
11
12MODULES = abstract buffer category history raster_type rowio segment
13
14PYFILES := $(patsubst %,$(DSTDIR)/%.py,$(MODULES) __init__)
15PYCFILES := $(patsubst %,$(DSTDIR)/%.pyc,$(MODULES) __init__)
16
17default: $(PYFILES) $(PYCFILES) $(GDIR)/__init__.py $(GDIR)/__init__.pyc
18
19$(PYDIR):
20	$(MKDIR) $@
21
22$(GDIR): | $(PYDIR)
23	$(MKDIR) $@
24
25$(DSTDIR): | $(GDIR)
26	$(MKDIR) $@
27
28$(DSTDIR)/%: % | $(DSTDIR)
29	$(INSTALL_DATA) $< $@
30
31#doxygen:
32DOXNAME = pythonpygrass