Skip to contentSkip to conversation

Create $(TARGET_DIR)/usr/lib when installing

PATCH New Clark Rawlins 2 participants 2 messages Nov 30, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Create $(TARGET_DIR)/usr/lib when installing

In some configurations $(TARGET_DIR)/usr/lib isn't created before the target install target for libncurses is run. This change makes sure it is created before the install target copies files to it.

---
 package/ncurses/ncurses.mk |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
package/ncurses/ncurses.mk +1 -0
index 2c7bf79..fb22c6c 100644
@@ -105,6 +105,7 @@ $(STAGING_DIR)/usr/lib/libncurses.so.$(NCURSES_VERSION): $(NCURSES_DIR)/lib/libn
 	touch -c $@
 
 $(TARGET_DIR)/usr/lib/libncurses.so.$(NCURSES_VERSION): $(STAGING_DIR)/usr/lib/libncurses.so.$(NCURSES_VERSION)
+	mkdir -p $(TARGET_DIR)/usr/lib
 	cp -dpf $(NCURSES_DIR)/lib/libncurses.so* $(TARGET_DIR)/usr/lib/
 ifeq ($(BR2_PACKAGE_NCURSES_TARGET_PANEL),y)
 	cp -dpf $(NCURSES_DIR)/lib/libpanel.so* $(TARGET_DIR)/usr/lib/
Signature · 1 line
1.6.3.3
#1 lore raw

PATCH 1/1 Create $(TARGET_DIR)/usr/lib when installing

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Clark" == Clark Rawlins <[email protected]> writes:

Clark> In some configurations $(TARGET_DIR)/usr/lib isn't Clark> created before the target install target for libncurses Clark> is run. This change makes sure it is created before Clark> the install target copies files to it.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard