summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorUlf Samuelsson <ulf.samuelsson@atmel.com>2007-07-16 09:45:39 +0000
committerUlf Samuelsson <ulf.samuelsson@atmel.com>2007-07-16 09:45:39 +0000
commit483331462a81070ac565a89f1c9091e7ad5628b4 (patch)
treeabb871b8351ccccc4f88c2ad48184f31683d167c /package
parent144f079cdea55b7b6aa106d395e3b77a9f1692a1 (diff)
downloadbuildroot-novena-483331462a81070ac565a89f1c9091e7ad5628b4.tar.gz
buildroot-novena-483331462a81070ac565a89f1c9091e7ad5628b4.zip
Avoid repeated rebuild of libusb
Diffstat (limited to 'package')
-rw-r--r--package/libusb/libusb.mk7
1 files changed, 5 insertions, 2 deletions
diff --git a/package/libusb/libusb.mk b/package/libusb/libusb.mk
index 609ffe9bd..fee780261 100644
--- a/package/libusb/libusb.mk
+++ b/package/libusb/libusb.mk
@@ -35,11 +35,11 @@ $(LIBUSB_DIR)/.configured: $(LIBUSB_DIR)/.unpacked
);
touch $(LIBUSB_DIR)/.configured
-$(STAGING_DIR)/$(LIBUSB_BINARY): $(LIBUSB_DIR)/.configured
+$(STAGING_DIR)/lib/libusb.so: $(LIBUSB_DIR)/.configured
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(LIBUSB_DIR)
$(MAKE) -C $(LIBUSB_DIR) DESTDIR=$(STAGING_DIR) install
-$(TARGET_DIR)/$(LIBUSB_BINARY): $(STAGING_DIR)/$(LIBUSB_BINARY)
+$(TARGET_DIR)/$(LIBUSB_BINARY): $(STAGING_DIR)/lib/libusb.so
-mkdir -p $(TARGET_DIR)/usr/lib
cp -a $(STAGING_DIR)/lib/libusb* $(TARGET_DIR)/usr/lib
rm -f $(TARGET_DIR)/usr/lib/*.a $(TARGET_DIR)/usr/lib/*.la
@@ -56,6 +56,9 @@ libusb-clean:
libusb-dirclean:
rm -rf $(LIBUSB_DIR)
+
+.PHONY: libusb
+
#############################################################
#
# Toplevel Makefile options