aboutsummaryrefslogtreecommitdiffstats
path: root/src/build-data/makefile
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-03-02 14:44:19 +0000
committerlloyd <[email protected]>2010-03-02 14:44:19 +0000
commit8e61a01e9a86b3179d760766468257ced024d497 (patch)
treee8509d38f32ffeec955da5e5a80d08ece201b3a0 /src/build-data/makefile
parent64d264518a7c9c0cfa64e70e9f146d1e92e42523 (diff)
Use a single dir for all boost.python objects
Diffstat (limited to 'src/build-data/makefile')
-rw-r--r--src/build-data/makefile/python.in8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/build-data/makefile/python.in b/src/build-data/makefile/python.in
index 9658c70ce..d3b4a122b 100644
--- a/src/build-data/makefile/python.in
+++ b/src/build-data/makefile/python.in
@@ -6,17 +6,15 @@ PYTHON_SITE_PACKAGE_DIR = /usr/lib/python%{python_version}/site-packages/
PYTHON_FLAGS = -Isrc/wrap/python -Os -fPIC -ftemplate-depth-255 -Wall -Wno-unused $(PYTHON_INC)
-PYTHON_OBJS = %{python_objs}
+BOTAN_PYTHON_MODDIR = %{python_obj_dir}
-BOTAN_PYTHON_MODDIR = build/botan-python
+PYTHON_OBJS = %{python_objs}
all: $(BOTAN_PYTHON_MODDIR)/_botan.so
%{python_build_cmds}
$(BOTAN_PYTHON_MODDIR)/_botan.so: $(PYTHON_OBJS)
- rm -rf $(BOTAN_PYTHON_MODDIR)
- mkdir $(BOTAN_PYTHON_MODDIR)
cp src/wrap/python/*.py $(BOTAN_PYTHON_MODDIR)
$(CXX) -shared -o $@ $(PYTHON_OBJS) -L. -L$(PYTHON_ROOT) -lbotan -lboost_python -Wl,-rpath-link,. -Wl,-soname,$@
@@ -25,5 +23,5 @@ clean:
install:
mkdir -p $(PYTHON_SITE_PACKAGE_DIR)/botan
- cp $(BOTAN_PYTHON_MODDIR)/* $(PYTHON_SITE_PACKAGE_DIR)/botan
+ cp $(BOTAN_PYTHON_MODDIR)/_botan.so $(BOTAN_PYTHON_MODDIR)/*.py $(PYTHON_SITE_PACKAGE_DIR)/botan
chmod -R u=rwX,go=rX $(PYTHON_SITE_PACKAGE_DIR)/botan