From 803ee9ef3594d3810e63a994ea45ca244c28958e Mon Sep 17 00:00:00 2001 From: Benjamin Herrenschmidt Date: Thu, 14 May 2020 10:12:44 +1000 Subject: [PATCH] Makefile: Improve clean a bit Signed-off-by: Benjamin Herrenschmidt --- Makefile | 4 +++- hello_world/Makefile | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b9ad461..749f771 100644 --- a/Makefile +++ b/Makefile @@ -163,11 +163,13 @@ _clean: clean: _clean make -f scripts/mw_debug/Makefile clean + make -f hello_world/Makefile clean distclean: _clean - rm -f *~ fpga/~ + rm -f *~ fpga/*~ lib/*~ console/*~ include/*~ rm -rf litedram/build rm -f litedram/extras/*~ rm -f litedram/gen-src/*~ rm -f litedram/gen-src/sdram_init/*~ make -f scripts/mw_debug/Makefile distclean + make -f hello_world/Makefile distclean diff --git a/hello_world/Makefile b/hello_world/Makefile index 4c7d3ac..dd51bd3 100644 --- a/hello_world/Makefile +++ b/hello_world/Makefile @@ -29,3 +29,6 @@ hello_world.hex: hello_world.bin clean: @rm -f *.o hello_world.elf hello_world.bin hello_world.hex +distclean: clean + rm -f *~ +