[PATCH] Makefile: add rebuild

Xiang W wxjstz at 126.com
Wed Jan 17 02:53:44 PST 2024


Rebuild is useful when need a complete recompile.

Reviewed-by: Anup Patel <anup at brainfault.org>
---
 Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Makefile b/Makefile
index de4e73a..17d0a22 100644
--- a/Makefile
+++ b/Makefile
@@ -688,5 +688,9 @@ endif
 	$(if $(V), @echo " RM        $(src_dir)/cscope*")
 	$(CMD_PREFIX)rm -f $(src_dir)/cscope*
 
+# Rule for "make rebuild"
+.PHONY: rebuild
+rebuild: clean all
+
 .PHONY: FORCE
 FORCE:
-- 
2.43.0




More information about the opensbi mailing list