From: Ulf Samuelsson Date: Mon, 16 Jul 2007 09:45:39 +0000 (-0000) Subject: Avoid repeated rebuild of libusb X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=483331462a81070ac565a89f1c9091e7ad5628b4;p=buildroot.git Avoid repeated rebuild of libusb --- 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