Ignore:
Timestamp:
Jul 31, 2008 3:30:08 PM (16 years ago)
Author:
gah
Message:

update makefile with mkdir_p

File:
1 edited

Legend:

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

    r1056 r1082  
    1111
    1212INSTALL         = @INSTALL@
     13MKDIR_P         = @MKDIR_P@
    1314INSTALL_PROGRAM = ${INSTALL} -m 755
    1415INSTALL_DATA    = ${INSTALL} -m 644
     
    2021PYTHON_FLAGS    = --library-dirs=$(libdir):../../src/core \
    2122               --include-dirs=$(srcdir)/../../src/core:$(includedir)
     23PYTHON_VERSION  = @PYTHON_VERSION@
     24pythonlib       = $$RAPPTURE_INSTALL_DIR/lib/python$(PYTHON_VERSION)/site-packages
     25
    2226ARCHFLAGS       =
    2327export ARCHFLAGS
     
    2630# into a temporary directory.
    2731#
    28 all: copy_sources
     32all: copy_sources python.env
    2933        $(PYTHON) setup.py build_ext $(PYTHON_FLAGS) build
    3034
    3135copy_sources:   
    3236        $(RM) -r build/tmp
    33         $(INSTALL) -d build/tmp
     37        $(MKDIR_P) build/tmp
    3438        $(INSTALL_DATA) $(srcdir)/Rappture/*.cc build/tmp
    3539 
    3640install:
    3741        $(PYTHON) setup.py install --prefix=$(prefix)
    38 
     42        $(INSTALL) -m 555 python.env $(bindir)
    3943clean:
    4044        $(PYTHON) setup.py clean
    4145        $(RM) -rf build
    4246
     47python.env:
     48        echo 'export PYTHONPATH=$(pythonlib):$$PYTHONPATH' > python.env
     49
    4350distclean: clean
Note: See TracChangeset for help on using the changeset viewer.