source: trunk/lang/python/Makefile.in @ 2059

Last change on this file since 2059 was 2059, checked in by gah, 14 years ago
File size: 1.3 KB
Line 
1
2bindir          = @bindir@
3datadir         = @datadir@
4datarootdir     = @datarootdir@
5exec_prefix     = @exec_prefix@
6includedir      = @includedir@
7libdir          = @libdir@
8mandir          = @mandir@
9prefix          = @prefix@
10srcdir          = @srcdir@
11srcdir2         := $(shell cd $(srcdir); pwd)
12
13INSTALL         = @INSTALL@
14MKDIR_P         = @MKDIR_P@
15LN_S            = @LN_S@
16INSTALL_PROGRAM = ${INSTALL} -m 755
17INSTALL_DATA    = ${INSTALL} -m 644
18INSTALL_SCRIPT  = ${INSTALL} -m 644
19RM              = rm -f
20VPATH           = $(srcdir)
21
22PYTHON          = @PYTHON@
23PYTHON_INCDIR   = @PYTHON_INCDIR@
24PYTHON_VERSION  = @PYTHON_VERSION@
25
26python_flags    = --library-dirs=$(libdir):../../src/core \
27                  --include-dirs=$(srcdir)/../../src/core:$(PYTHON_INCDIR)
28pythonlib       = $(libdir)/python$(PYTHON_VERSION)/site-packages
29envfile         = python.env
30
31ARCHFLAGS       =
32export ARCHFLAGS
33#
34# Python distutils doesn't handle VPATH correctly. So copy the sources
35# into a temporary directory.
36#
37all: build/tmp
38        $(PYTHON) setup.py build_ext $(PYTHON_FLAGS) build
39
40build/tmp:
41        $(MKDIR_P) -m 0755 build/tmp
42        $(LN_S) $(srcdir2)/Rappture/*.cc build/tmp
43
44install:
45        $(MKDIR_P) -m 0755 $(pythonlib)
46        $(PYTHON) setup.py install --install-lib=$(pythonlib)
47
48clean:
49        $(PYTHON) setup.py clean
50        $(RM) -rf build
51
52distclean: clean
Note: See TracBrowser for help on using the repository browser.