From 2b9596cac0bb705dec166b5239d7473eeb8a4786 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Sun, 25 Sep 2016 18:39:47 +0200 Subject: [PATCH] Run clean beffore distclean so that a partial build is wiped as well. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 8f46990dc7..7e922de4ef 100644 --- a/Makefile +++ b/Makefile @@ -265,14 +265,14 @@ package_firmware: clean: @rm -rf build_*/ - @$(MAKE) -C NuttX/nuttx clean + -@$(MAKE) -C NuttX/nuttx clean submodulesclean: @git submodule sync --recursive @git submodule deinit -f . @git submodule update --init --recursive --force -distclean: submodulesclean +distclean: submodulesclean clean @git clean -ff -x -d -e ".project" -e ".cproject" # All other targets are handled by PX4_MAKE. Add a rule here to avoid printing an error.