From 483331462a81070ac565a89f1c9091e7ad5628b4 Mon Sep 17 00:00:00 2001 From: Ulf Samuelsson Date: Mon, 16 Jul 2007 09:45:39 +0000 Subject: [PATCH] Avoid repeated rebuild of libusb --- package/libusb/libusb.mk | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/package/libusb/libusb.mk b/package/libusb/libusb.mk index 609ffe9bd4..fee780261e 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 -- 2.30.2