Skip to contentSkip to conversation

Makefile: Remove more pkgconfig files

PATCH New Valentine Barshak 2 participants 2 messages Oct 2, 2012 – Oct 4, 2012 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Makefile: Remove more pkgconfig files

The pkgconfig files are located in /usr/lib/pkgconfig and /usr/share/pkgconfig directories. However, only /usr/lib/pkgconfig is removed when no development files are needed in the target filesystem.

Remove pkgconfig directory from $(TARGET_DIR)/usr/share as well if BR2_HAVE_DEVFILES is not set.

---
 Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Makefile +2 -1
index 6536bca..0128839 100644
@@ -419,7 +419,8 @@ target-finalize:
 ifeq ($(BR2_HAVE_DEVFILES),y)
 	( support/scripts/copy.sh $(STAGING_DIR) $(TARGET_DIR) )
 else
-	rm -rf $(TARGET_DIR)/usr/include $(TARGET_DIR)/usr/lib/pkgconfig $(TARGET_DIR)/usr/share/aclocal
+	rm -rf $(TARGET_DIR)/usr/include $(TARGET_DIR)/usr/share/aclocal \
+		$(TARGET_DIR)/usr/lib/pkgconfig $(TARGET_DIR)/usr/share/pkgconfig
 	find $(TARGET_DIR)/lib \( -name '*.a' -o -name '*.la' \) -print0 | xargs -0 rm -f
 	find $(TARGET_DIR)/usr/lib \( -name '*.a' -o -name '*.la' \) -print0 | xargs -0 rm -f
 endif
Signature · 1 line
1.7.11.4
#1 lore raw

PATCH 1/1 Makefile: Remove more pkgconfig files

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

"Valentine" == Valentine Barshak <[email protected]> writes:

Valentine> The pkgconfig files are located in /usr/lib/pkgconfig Valentine> and /usr/share/pkgconfig directories. Valentine> However, only /usr/lib/pkgconfig is removed when no Valentine> development files are needed in the target filesystem.

Valentine> Remove pkgconfig directory from $(TARGET_DIR)/usr/share Valentine> as well if BR2_HAVE_DEVFILES is not set.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard