Ignore:
Timestamp:
Jun 13, 2008, 3:57:22 PM (16 years ago)
Author:
gah
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lang/python/Makefile.in

    r1029 r1047  
    2020PYTHON_FLAGS = --library-dirs=$(libdir):../../src/core \
    2121               --include-dirs=$(srcdir)/../../src/core:$(includedir)
     22PYTHON_SITE_PACKAGES =  @PYTHON_SITE_PACKAGES@
    2223
    2324#
     
    2526# into a temporary directory.
    2627#
    27 all: copy_sources
     28ifneq($(PYTHON_SITE_PACKAGES),)
     29   MODULE_BUILD         = build_module
     30   MODULE_INSTALL       = install_module
     31   MODULE_CLEAN         = clean_module
     32endif
     33
     34all: $(MODULE_BUILD)
     35
     36build_module: copy_sources
    2837        $(PYTHON) setup.py build_ext $(PYTHON_FLAGS) build
    2938
    30 copy_sources:   
     39copy_sources:
    3140        $(RM) -r build/tmp
    3241        $(INSTALL) -d build/tmp
    3342        $(INSTALL_DATA) $(srcdir)/Rappture/*.cc build/tmp
    3443 
    35 install:
     44install: $(MODULE_INSTALL)
     45
     46install_module:
    3647        $(PYTHON) setup.py install --prefix=$(prefix)
    3748
    38 clean:
     49clean: $(MODULE_CLEAN)
     50
     51clean_module:
    3952        $(PYTHON) setup.py clean
    4053        $(RM) -rf build
Note: See TracChangeset for help on using the changeset viewer.