From: Danomi Manchego Date: Wed, 23 Nov 2016 02:23:02 +0000 (-0500) Subject: Makefile: fix distclean removal of $(O) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=171d4103c565d618ac6dfc61dedf3e1a310e8d6c;p=buildroot.git Makefile: fix distclean removal of $(O) The distclean target no longer removes the "output" directory for in-tree builds, because $(O) is no longer just "output" in that case. Change the test to be against "$(CURDIR)/output", to match the O setting, and a similar test elsewhere in the same Makefile. Signed-off-by: Danomi Manchego Signed-off-by: Thomas Petazzoni --- diff --git a/Makefile b/Makefile index 37e4bd4dbd..13239616a8 100644 --- a/Makefile +++ b/Makefile @@ -928,7 +928,7 @@ clean: $(LEGAL_INFO_DIR) $(GRAPHS_DIR) distclean: clean -ifeq ($(O),output) +ifeq ($(O),$(CURDIR)/output) rm -rf $(O) endif rm -rf $(TOPDIR)/dl $(BR2_CONFIG) $(CONFIG_DIR)/.config.old $(CONFIG_DIR)/..config.tmp \