From: David Bonnin <dboml@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] Add "make target-clean" to clean TARGET_DIR
Date: Sat, 27 Oct 2012 15:32:20 +0200 [thread overview]
Message-ID: <508BE264.2030608@free.fr> (raw)
In-Reply-To: <1351334065-8602-1-git-send-email-sho@relinux.de>
For me, cleaning TARGET_DIR is enough.
Cleaning .stamp_staging_installed isn't necessary.
If need to clean staging, it means you have modifiy the package it self,
so you need to rebuild packages that depends on this one. (if understand
well ;) ).
David.
Le 27/10/2012 12:34, Stephan Hoffmann a ?crit :
> Signed-off-by: Stephan Hoffmann <sho@relinux.de>
> ---
> Makefile | 11 ++++++++++-
> 1 files changed, 10 insertions(+), 1 deletions(-)
>
> diff --git a/Makefile b/Makefile
> index 0128839..01d232b 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -367,7 +367,7 @@ prepare: $(BUILD_DIR)/buildroot-config/auto.conf
>
> world: prepare dirs dependencies $(BASE_TARGETS) $(TARGETS_ALL)
>
> -.PHONY: all world dirs clean distclean source outputmakefile \
> +.PHONY: all world dirs clean distclean source outputmakefile target-clean \
> legal-info legal-info-prepare legal-info-clean \
> $(BASE_TARGETS) $(TARGETS) $(TARGETS_ALL) \
> $(TARGETS_CLEAN) $(TARGETS_DIRCLEAN) $(TARGETS_SOURCE) $(TARGETS_LEGAL_INFO) \
> @@ -655,6 +655,15 @@ ifeq ($(NEED_WRAPPER),y)
> $(Q)$(TOPDIR)/support/scripts/mkmakefile $(TOPDIR) $(O)
> endif
>
> +target-clean:
> + rm -rf $(TARGET_DIR)
> + rm -f $(BUILD_DIR)/.root
> + find $(STAMP_DIR) -name ".stamp_target_installed*" -print | xargs rm -f
> + find $(STAMP_DIR) -name ".stamp_staging_installed*" -print | xargs rm -f
> + find $(BUILD_DIR) -name ".stamp_target_installed*" -print | xargs rm -f
> + find $(BUILD_DIR) -name ".stamp_staging_installed*" -print | xargs rm -f
> + rm $(STAMP_DIR)/ext-toolchain-installed
> +
> clean:
> rm -rf $(STAGING_DIR) $(TARGET_DIR) $(BINARIES_DIR) $(HOST_DIR) \
> $(STAMP_DIR) $(BUILD_DIR) $(TOOLCHAIN_DIR) $(BASE_DIR)/staging \
next prev parent reply other threads:[~2012-10-27 13:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-27 9:45 [Buildroot] make help add-in David Bonnin
2012-10-27 10:34 ` [Buildroot] [PATCH] Add "make target-clean" to clean TARGET_DIR Stephan Hoffmann
2012-10-27 13:32 ` David Bonnin [this message]
2012-10-27 14:11 ` Arnout Vandecappelle
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=508BE264.2030608@free.fr \
--to=dboml@free.fr \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox