[PATCH] Makefile: add rebuild

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


在 2024-01-17星期三的 18:53 +0800,Xiang W写道:
> Rebuild is useful when need a complete recompile.
> 
> Reviewed-by: Anup Patel <anup at 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:




More information about the opensbi mailing list