Ignore:
Timestamp:
Jul 28, 2010, 1:43:53 AM (14 years ago)
Author:
martinl
Message:

ctypes backported from trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • grass/branches/develbranch_6/lib/python/Makefile

    r38064 r42916  
    44include $(MODULE_TOPDIR)/include/Make/Grass.make
    55include $(MODULE_TOPDIR)/include/Make/Rules.make
     6include $(MODULE_TOPDIR)/include/Make/Python.make
    67include $(MODULE_TOPDIR)/include/Make/Doxygen.make
    78
     
    1011DSTDIR = $(GDIR)/script
    1112
    12 MODULES = core db raster vector
     13MODULES = core db raster vector array
    1314
    1415PYFILES := $(patsubst %,$(DSTDIR)/%.py,$(MODULES) __init__)
     16PYCFILES := $(patsubst %,$(DSTDIR)/%.pyc,$(MODULES) __init__)
    1517
    16 default: $(DSTDIR)
    17         $(MAKE) $(PYFILES)
     18CLEAN_SUBDIRS = ctypes
     19
     20default: $(PYFILES) $(PYCFILES) $(GDIR)/__init__.py $(GDIR)/__init__.pyc
     21        -$(MAKE) -C ctypes || echo $(CURDIR)/ctypes >> $(ERRORLOG)
    1822
    1923$(PYDIR):
    20         test -d $@ || $(MKDIR) -p $@
     24        $(MKDIR) $@
    2125
    22 $(GDIR): $(PYDIR)
    23         test -d $@ || $(MKDIR) -p $@
     26$(GDIR): | $(PYDIR)
     27        $(MKDIR) $@
    2428
    25 $(DSTDIR): $(GDIR)
    26         test -d $@ || $(MKDIR) -p $@
    27         @cat grass__init__.py > $(GDIR)/__init__.py
     29$(DSTDIR): | $(GDIR)
     30        $(MKDIR) $@
    2831
    29 $(DSTDIR)/%: %
     32$(GDIR)/__init__.py: grass__init__.py | $(GDIR)
     33        $(INSTALL_DATA) $< $@
     34
     35$(DSTDIR)/%: % | $(DSTDIR)
    3036        $(INSTALL_DATA) $< $@
    3137
Note: See TracChangeset for help on using the changeset viewer.