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

Last change on this file since 1044 was 1029, checked in by gah, 16 years ago

more Makefile fixups

File size: 963 bytes
Line 
1
2bindir          = @bindir@
3datadir         = @datadir@
4datarootdir     = @datarootdir@
5exec_prefix     = @exec_prefix@
6includedir      = @includedir@
7libdir          = @libdir@
8mandir          = @mandir@
9prefix          = @prefix@
10srcdir          = @srcdir@
11
12INSTALL         = @INSTALL@
13INSTALL_PROGRAM = ${INSTALL} -m 755
14INSTALL_DATA    = ${INSTALL} -m 644
15INSTALL_SCRIPT  = ${INSTALL} -m 644
16RM              = rm -f
17VPATH           = $(srcdir)
18
19PYTHON =        @PYTHON@
20PYTHON_FLAGS = --library-dirs=$(libdir):../../src/core \
21               --include-dirs=$(srcdir)/../../src/core:$(includedir)
22
23#
24# Python distutils doesn't handle VPATH correctly. So copy the sources
25# into a temporary directory.
26#
27all: copy_sources
28        $(PYTHON) setup.py build_ext $(PYTHON_FLAGS) build
29
30copy_sources:   
31        $(RM) -r build/tmp
32        $(INSTALL) -d build/tmp
33        $(INSTALL_DATA) $(srcdir)/Rappture/*.cc build/tmp
34 
35install:
36        $(PYTHON) setup.py install --prefix=$(prefix)
37
38clean:
39        $(PYTHON) setup.py clean
40        $(RM) -rf build
41
42distclean: clean
Note: See TracBrowser for help on using the repository browser.