Last change
on this file since 3482 was
3471,
checked in by ldelgass, 12 years ago
|
Makefile fixes: make 'install' target always depend on 'all' target. This
ensures that an up to date build exists before installing, and also permits
the use of "make install" in place of "make all install" or "make all; make install". It doesn't affect the existing build scripts. Likewise, make 'distclean'
always depend on 'clean'. Remove empty contour objects example, as there is no
corresponding object class. Also declare all the standard targets 'all, install,
etc' in the .PHONY section for performance.
|
File size:
1.4 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 | .PHONY: all install clean distclean |
---|
35 | |
---|
36 | # |
---|
37 | # Python distutils doesn't handle VPATH correctly. So copy the sources |
---|
38 | # into a temporary directory. |
---|
39 | # |
---|
40 | all: build/tmp |
---|
41 | $(PYTHON) setup.py build_ext $(python_flags) build |
---|
42 | |
---|
43 | build/tmp: |
---|
44 | $(MKDIR_P) -m 0755 build/tmp |
---|
45 | $(LN_S) $(srcdir2)/Rappture/*.cc build/tmp |
---|
46 | |
---|
47 | install: all |
---|
48 | $(MKDIR_P) -m 0755 $(pythonlib) |
---|
49 | $(PYTHON) setup.py install --install-lib=$(pythonlib) |
---|
50 | |
---|
51 | clean: |
---|
52 | $(PYTHON) setup.py clean |
---|
53 | $(RM) -rf build |
---|
54 | |
---|
55 | distclean: clean |
---|
56 | $(RM) Makefile setup.py *~ |
---|
Note: See
TracBrowser
for help on using the repository browser.