From patchwork Wed Mar 6 17:14:26 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Ceresoli X-Patchwork-Id: 225554 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 1E80A2C03A6 for ; Thu, 7 Mar 2013 04:15:51 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 9524FFFA78; Wed, 6 Mar 2013 17:15:35 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8B6h4ilhh3Vr; Wed, 6 Mar 2013 17:15:30 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 3DF71101EF1; Wed, 6 Mar 2013 17:15:30 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id EFC8C8F7A4 for ; Wed, 6 Mar 2013 17:15:42 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 33CD88ADA9 for ; Wed, 6 Mar 2013 17:15:35 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iy-DWZJ8+gsY for ; Wed, 6 Mar 2013 17:15:30 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from m-14.th.seeweb.it (m-14.th.seeweb.it [217.64.195.243]) by whitealder.osuosl.org (Postfix) with ESMTPS id 500968D45A for ; Wed, 6 Mar 2013 17:15:28 +0000 (UTC) Received: from wallace.comelit.it (host138-62-static.18-80-b.business.telecomitalia.it [80.18.62.138]) (authenticated bits=0) by m-14.th.seeweb.it (8.14.3/8.14.3/Debian-9.4) with ESMTP id r26HFAd2014520; Wed, 6 Mar 2013 18:15:25 +0100 From: Luca Ceresoli To: buildroot@busybox.net Date: Wed, 6 Mar 2013 18:14:26 +0100 Message-Id: <1362590066-5448-6-git-send-email-luca@lucaceresoli.net> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1362590066-5448-1-git-send-email-luca@lucaceresoli.net> References: <1362590066-5448-1-git-send-email-luca@lucaceresoli.net> Cc: Luca Ceresoli Subject: [Buildroot] [PATCH 5/5] CMake packages: remove .cmake files from target directory X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Just like pkgconfig files. Signed-off-by: Luca Ceresoli --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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