summaryrefslogtreecommitdiffstats
path: root/package/python
diff options
context:
space:
mode:
authorUlf Samuelsson <ulf.samuelsson@atmel.com>2009-01-17 00:19:06 +0000
committerUlf Samuelsson <ulf.samuelsson@atmel.com>2009-01-17 00:19:06 +0000
commit03e3b81d4c823929a054707637948c281a14431f (patch)
treed71ce667df415f250be967cdf8e5b85aa4f0fb11 /package/python
parent3eecdf6166668c31dc017af2ce3ced67208c1155 (diff)
downloadbuildroot-novena-03e3b81d4c823929a054707637948c281a14431f.tar.gz
buildroot-novena-03e3b81d4c823929a054707637948c281a14431f.zip
Make alsa-lib depend on libpython, if new BR2_PACKAGE_ALSA_LIB_PYTHON is selected
Diffstat (limited to 'package/python')
-rw-r--r--package/python/python.mk38
1 files changed, 27 insertions, 11 deletions
diff --git a/package/python/python.mk b/package/python/python.mk
index d775cce3f..3173ad0c4 100644
--- a/package/python/python.mk
+++ b/package/python/python.mk
@@ -167,25 +167,41 @@ ifneq ($(BR2_PACKAGE_PYTHON_TKINTER),y)
rm -rf $(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/lib-tk
endif
-$(STAGING_DIR)/usr/lib/libpython$(PYTHON_VERSION_MAJOR).so: $(TARGET_DIR)/$(PYTHON_TARGET_BINARY)
- cp -dpr $(PYTHON_DIR)/libpython*.so.* $(STAGING_DIR)/usr/lib
- (\
- cd $(STAGING_DIR)/usr/lib ; \
- rm -f libpython$(PYTHON_VERSION_MAJOR).so ; \
- ln -s `basename \`ls libpython*.so.*\`` libpython$(PYTHON_VERSION_MAJOR).so \
- )
-
-libpython: $(STAGING_DIR)/usr/lib/libpython$(PYTHON_VERSION_MAJOR).so
-
-python: uclibc $(PYTHON_DEPS) $(TARGET_DIR)/$(PYTHON_TARGET_BINARY) libpython
+python: uclibc $(PYTHON_DEPS) $(TARGET_DIR)/$(PYTHON_TARGET_BINARY)
python-clean:
-$(MAKE) -C $(PYTHON_DIR) distclean
rm -f $(PYTHON_DIR)/.configured $(TARGET_DIR)/$(PYTHON_TARGET_BINARY)
-rm -rf $(TARGET_DIR)/usr/lib/python* $(TARGET_DIR)/usr/include/python*
+ -rm -f $(STAGING_DIR)/usr/lib/libpython$(PYTHON_VERSION_MAJOR).so
python-dirclean:
rm -rf $(PYTHON_DIR)
+
+#### LIBPYTHON
+
+
+LIBPYTHON_BINARY:=libpython$(PYTHON_VERSION_MAJOR).so
+
+libpython: python $(TARGET_DIR)/usr/lib/$(LIBPYTHON_BINARY)
+
+
+$(STAGING_DIR)/usr/lib/libpython$(PYTHON_VERSION_MAJOR).so: $(TARGET_DIR)/$(PYTHON_TARGET_BINARY)
+ cp -dpr $(PYTHON_DIR)/$(LIBPYTHON_BINARY).* $(STAGING_DIR)/usr/lib
+ (\
+ cd $(STAGING_DIR)/usr/lib ; \
+ rm -f $(LIBPYTHON_BINARY) ; \
+ ln -s `basename \`ls libpython*.so.*\`` $(LIBPYTHON_BINARY) \
+ )
+
+$(TARGET_DIR)/usr/lib/$(LIBPYTHON_BINARY): $(STAGING_DIR)/usr/lib/$(LIBPYTHON_BINARY)
+ cp -dpr $(STAGING_DIR)/usr/lib/$(LIBPYTHON_BINARY).* $(TARGET_DIR)/usr/lib
+ (\
+ cd $(TARGET_DIR)/usr/lib ; \
+ rm -f $(LIBPYTHON_BINARY) ; \
+ ln -s `basename \`ls libpython*.so.*\`` $(LIBPYTHON_BINARY) \
+ )
+
#############################################################
#
# Toplevel Makefile options