From patchwork Thu Jun 26 10:29:11 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Angelo Compagnucci X-Patchwork-Id: 364331 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 ECCAD1400F0 for ; Thu, 26 Jun 2014 20:29:32 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 3304888F33; Thu, 26 Jun 2014 10:29:31 +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 F5uKGD-qIOg4; Thu, 26 Jun 2014 10:29:29 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 8D202868B0; Thu, 26 Jun 2014 10:29:29 +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 0551E1BF9EE for ; Thu, 26 Jun 2014 10:29:28 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 021BB8957A for ; Thu, 26 Jun 2014 10:29:28 +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 hGtHy4ZI-Lza for ; Thu, 26 Jun 2014 10:29:27 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wg0-f52.google.com (mail-wg0-f52.google.com [74.125.82.52]) by whitealder.osuosl.org (Postfix) with ESMTPS id 317DB8ACA1 for ; Thu, 26 Jun 2014 10:29:27 +0000 (UTC) Received: by mail-wg0-f52.google.com with SMTP id b13so3402648wgh.11 for ; Thu, 26 Jun 2014 03:29:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=gyE14fh6dhbi07RyvsHlSW4W1am+plJVEug2Z4b7nps=; b=BR0Ku8c+gMpblfwVz8ZuPaV1yUKWuMZtGxqUguUW3wgom3lwyPNnB/0qIJvXIUQPY/ oVbv+pWZOeJAtgWzbFH5rZGYJ+v89Nhr65t5PUBY+qKjzHxvxpCg7XyCTCmKn/oWwe/L e/VTMBBIohWUYVLlxqSeDOP7WZicjQn7YexNnQ1F7hrgV6niBlm4YQxbK0knPfZ0Gyby 3aJo8LWiHCVs/yW7WzG1rB0Zr4kLBUWZgFvlQAF2j45NvDDcALWfQ2/fkj38EMk6P11m 7MGpYyvkpbjFCiUupuJb8KR+zhyPX1SOI1rotX7tjgJ3MxbGf2HHcsPszIvEstEuik+6 JFKw== X-Received: by 10.180.108.133 with SMTP id hk5mr3153893wib.77.1403778565660; Thu, 26 Jun 2014 03:29:25 -0700 (PDT) Received: from localhost.localdomain ([193.205.82.9]) by mx.google.com with ESMTPSA id fb15sm22880038wid.23.2014.06.26.03.29.24 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 26 Jun 2014 03:29:25 -0700 (PDT) From: Angelo Compagnucci To: buildroot@busybox.net Date: Thu, 26 Jun 2014 12:29:11 +0200 Message-Id: <1403778551-31435-1-git-send-email-angelo.compagnucci@gmail.com> X-Mailer: git-send-email 2.0.0 Subject: [Buildroot] [PATCH] Add target-clean makefile target 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 This makefile target wipes the target folder and forces buildroot into rebuild it. It's useful when you have changed the list of packages and the target tree remains out of sync keeping old installed packages no longer needed. Signed-off-by: Angelo Compagnucci --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 14fca2b..83dceb7 100644 --- a/Makefile +++ b/Makefile @@ -835,6 +835,11 @@ clean: $(BUILD_DIR) $(BASE_DIR)/staging \ $(LEGAL_INFO_DIR) +target-clean: + rm -rf $(TARGET_DIR) + find $(BUILD_DIR) -name ".stamp_target_installed" -exec rm {} \; + rm $(BUILD_DIR)/.root + distclean: clean ifeq ($(DL_DIR),$(TOPDIR)/dl) rm -rf $(DL_DIR) @@ -848,6 +853,7 @@ help: @echo 'Cleaning:' @echo ' clean - delete all files created by build' @echo ' distclean - delete all non-source files (including .config)' + @echo ' target-clean - delete all target files and forces reinstall' @echo @echo 'Build:' @echo ' all - make world'