Patchwork [5/5] CMake packages: remove .cmake files from target directory

login
register
mail settings
Submitter Luca Ceresoli
Date March 6, 2013, 5:14 p.m.
Message ID <1362590066-5448-6-git-send-email-luca@lucaceresoli.net>
Download mbox | patch
Permalink /patch/225554/
State Accepted
Commit df99efb3d9114aa09153fdb1f47b7ce695e8f53b
Headers show

Comments

Luca Ceresoli - March 6, 2013, 5:14 p.m.
Just like pkgconfig files.

Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
---
 Makefile |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
Peter Korsgaard - March 10, 2013, 8:30 p.m.
>>>>> "Luca" == Luca Ceresoli <luca@lucaceresoli.net> writes:

 Luca> Just like pkgconfig files.
 Luca> Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>

Committed, thanks.

Patch

diff --git a/Makefile b/Makefile
index f6d8494..8346f27 100644
--- a/Makefile
+++ b/Makefile
@@ -452,7 +452,9 @@  ifeq ($(BR2_HAVE_DEVFILES),y)
 	( support/scripts/copy.sh $(STAGING_DIR) $(TARGET_DIR) )
 else
 	rm -rf $(TARGET_DIR)/usr/include $(TARGET_DIR)/usr/share/aclocal \
-		$(TARGET_DIR)/usr/lib/pkgconfig $(TARGET_DIR)/usr/share/pkgconfig
+		$(TARGET_DIR)/usr/lib/pkgconfig $(TARGET_DIR)/usr/share/pkgconfig \
+		$(TARGET_DIR)/usr/lib/cmake $(TARGET_DIR)/usr/share/cmake
+	find $(TARGET_DIR)/usr/{lib,share}/ -name '*.cmake' -print0 | xargs -0 rm -f
 	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