libusb: correctly install into STAGING_DIR/usr

Closes #2494
This commit is contained in:
Peter Korsgaard 2008-03-27 13:00:31 +00:00
parent ca89923ee0
commit 584e60c797
1 changed files with 4 additions and 4 deletions

View File

@ -45,17 +45,17 @@ $(LIBUSB_DIR)/.configured: $(LIBUSB_DIR)/.unpacked
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--prefix=/ \
--prefix=$(STAGING_DIR)/usr \
--disable-debug \
--disable-build-docs \
)
touch $@
$(STAGING_DIR)/lib/libusb.so: $(LIBUSB_DIR)/.configured
$(STAGING_DIR)/usr/lib/libusb.so: $(LIBUSB_DIR)/.configured
$(MAKE) -C $(LIBUSB_DIR)
$(MAKE) -C $(LIBUSB_DIR) DESTDIR=$(STAGING_DIR) install
$(MAKE) -C $(LIBUSB_DIR) install
$(TARGET_DIR)/$(LIBUSB_BINARY): $(STAGING_DIR)/lib/libusb.so
$(TARGET_DIR)/$(LIBUSB_BINARY): $(STAGING_DIR)/usr/lib/libusb.so
cp -dpf $(STAGING_DIR)/usr/lib/libusb*.so* $(TARGET_DIR)/usr/lib/
$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libusb*.so*