Last change
on this file since 3404 was
3113,
checked in by gah, 12 years ago
|
Made "install" target depend on "all".
Changed argument progress' percentage argument to now take a
double (floating point) value instead of an integer. The underlying
Rappture::Utils::progress routine may take only an integer, but this
allows python programs to compute a percentage without worrying about
the type of the result.
Fixed boolean handling routines to check what kind of python object
it is considering (boolean, long, double, or string), before converting
to a boolean (0 or 1) value.
|
File size:
1.3 KB
|
Line | |
---|
1 | |
---|
2 | bindir = @bindir@ |
---|
3 | datadir = @datadir@ |
---|
4 | datarootdir = @datarootdir@ |
---|
5 | exec_prefix = @exec_prefix@ |
---|
6 | includedir = @includedir@ |
---|
7 | libdir = @libdir@ |
---|
8 | mandir = @mandir@ |
---|
9 | prefix = @prefix@ |
---|
10 | srcdir = @srcdir@ |
---|
11 | srcdir2 := $(shell cd $(srcdir); pwd) |
---|
12 | |
---|
13 | INSTALL = @INSTALL@ |
---|
14 | MKDIR_P = @MKDIR_P@ |
---|
15 | LN_S = @LN_S@ |
---|
16 | INSTALL_PROGRAM = ${INSTALL} -m 755 |
---|
17 | INSTALL_DATA = ${INSTALL} -m 644 |
---|
18 | INSTALL_SCRIPT = ${INSTALL} -m 644 |
---|
19 | RM = rm -f |
---|
20 | VPATH = $(srcdir) |
---|
21 | |
---|
22 | PYTHON = @PYTHON@ |
---|
23 | PYTHON_INCDIR = @PYTHON_INCDIR@ |
---|
24 | PYTHON_VERSION = @PYTHON_VERSION@ |
---|
25 | |
---|
26 | python_flags = --library-dirs=$(libdir):../../src/core \ |
---|
27 | --include-dirs=$(srcdir)/../../src/core:$(PYTHON_INCDIR) |
---|
28 | pythonlib = $(libdir)/python$(PYTHON_VERSION)/site-packages |
---|
29 | envfile = python.env |
---|
30 | |
---|
31 | ARCHFLAGS = |
---|
32 | export ARCHFLAGS |
---|
33 | # |
---|
34 | # Python distutils doesn't handle VPATH correctly. So copy the sources |
---|
35 | # into a temporary directory. |
---|
36 | # |
---|
37 | all: build/tmp |
---|
38 | $(PYTHON) setup.py build_ext $(python_flags) build |
---|
39 | |
---|
40 | build/tmp: |
---|
41 | $(MKDIR_P) -m 0755 build/tmp |
---|
42 | $(LN_S) $(srcdir2)/Rappture/*.cc build/tmp |
---|
43 | |
---|
44 | install: all |
---|
45 | $(MKDIR_P) -m 0755 $(pythonlib) |
---|
46 | $(PYTHON) setup.py install --install-lib=$(pythonlib) |
---|
47 | |
---|
48 | clean: |
---|
49 | $(PYTHON) setup.py clean |
---|
50 | $(RM) -rf build |
---|
51 | |
---|
52 | distclean: clean |
---|
Note: See
TracBrowser
for help on using the repository browser.