From patchwork Tue Oct 2 18:52:15 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Valentine Barshak X-Patchwork-Id: 188614 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id D79ED2C00A3 for ; Wed, 3 Oct 2012 04:51:35 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id A487E304DE; Tue, 2 Oct 2012 18:51:33 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZNaeotMAz-n2; Tue, 2 Oct 2012 18:51:32 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id A9B4924989; Tue, 2 Oct 2012 18:51:32 +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 6E01C8F74A for ; Tue, 2 Oct 2012 18:51:34 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 2AA7B8A106 for ; Tue, 2 Oct 2012 18:51:32 +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 wC+GzwkSqGwW for ; Tue, 2 Oct 2012 18:51:30 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com [209.85.217.171]) by whitealder.osuosl.org (Postfix) with ESMTPS id 75BC28A0B6 for ; Tue, 2 Oct 2012 18:51:30 +0000 (UTC) Received: by lbom4 with SMTP id m4so12626809lbo.16 for ; Tue, 02 Oct 2012 11:51:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:x-mailer; bh=FAutqWMloks1FJZRryi/UIVaES4NJ+QaZn5zg+kY60w=; b=rFe+J/q0E3dC2vEyodLSpH5kbbGVmD4qsbGeRrbnN3yDBT35ovRAeky3k6PhMcPEMB KaGLcJWXCW54OaszAJcCIHxI+je8E1WAfvnEQpWiGcB+NNtebWh75aGCVKuyNd08ThUA O0oJDYA8T5IzXBFomUxru0+1Rak9xksQs908uOC9s2eFQavtDne6+JCjV7Dc+MG0Mb6c gUDdcn7RNkmYpKdnOb63kN3SLrnCzVxoakWYpaD3b/aNOT+TsUpwIZKabSr9qgIwuoaH 9wMog04UIvZ031UgR2LaqXB8pTT3GpHF2xwZLQq2ltJ4PP1RatbWxZl8NljshXq79kWR sQCQ== Received: by 10.152.106.237 with SMTP id gx13mr14897096lab.46.1349203888106; Tue, 02 Oct 2012 11:51:28 -0700 (PDT) Received: from black.localnet ([93.100.122.208]) by mx.google.com with ESMTPS id s2sm748074lbl.11.2012.10.02.11.51.27 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 02 Oct 2012 11:51:27 -0700 (PDT) From: Valentine Barshak To: buildroot@busybox.net Date: Tue, 2 Oct 2012 22:52:15 +0400 Message-Id: <1349203935-20225-1-git-send-email-gvaxon@gmail.com> X-Mailer: git-send-email 1.7.11.4 Subject: [Buildroot] [PATCH] Makefile: Remove more pkgconfig files 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 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. Signed-off-by: Valentine Barshak --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6536bca..0128839 100644 --- a/Makefile +++ b/Makefile @@ -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