diff mbox series

Makefile: add rebuild

Message ID 20240117105403.1057264-1-wxjstz@126.com
State Rejected
Headers show
Series Makefile: add rebuild | expand

Commit Message

Xiang W Jan. 17, 2024, 10:53 a.m. UTC
Rebuild is useful when need a complete recompile.

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

Comments

Xiang W Jan. 17, 2024, 10:56 a.m. UTC | #1
在 2024-01-17星期三的 18:53 +0800,Xiang W写道:
> Rebuild is useful when need a complete recompile.
> 
> Reviewed-by: Anup Patel <anup@brainfault.org>
Sorry for wrong Reviewed-by

Regards,
Xiang W
> ---
>  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:
diff mbox series

Patch

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: