]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
Makefile: fix distclean removal of $(O)
authorDanomi Manchego <danomimanchego123@gmail.com>
Wed, 23 Nov 2016 02:23:02 +0000 (21:23 -0500)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 23 Nov 2016 22:29:45 +0000 (23:29 +0100)
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 <danomimanchego123@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Makefile

index 37e4bd4dbde4bb2e95525c2b18650cc1dd6669da..13239616a86c6907078606bf1b63db92c08b3008 100644 (file)
--- 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 \