Makefile: Improve clean a bit
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 14 May 2020 00:12:44 +0000 (10:12 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 15 May 2020 10:49:09 +0000 (20:49 +1000)
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Makefile
hello_world/Makefile

index b9ad461272295c0684aa14439b2942dd62f93cc1..749f7716dd9d85d9efa164081256506abed636ad 100644 (file)
--- 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
index 4c7d3acd3a0132696bdc54461e30108550f9adda..dd51bd38f9ae428328cb8f0d2c3eea479068d997 100644 (file)
@@ -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 *~
+