Message ID | 20240117105843.1058338-1-wxjstz@126.com |
---|---|
State | Rejected |
Headers | show |
Series | [v2] Makefile: add rebuild | expand |
On Jan 17 2024, Xiang W wrote: > 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 This will not work in a parallel build, since clean and all will be run in parallel.
在 2024-01-17星期三的 12:36 +0100,Andreas Schwab写道: > On Jan 17 2024, Xiang W wrote: > > > 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 > > This will not work in a parallel build, since clean and all will be run > in parallel. > Thanks, let's drop this patch. Regards, Xiang W
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:
Rebuild is useful when need a complete recompile. Signed-off-by: Xiang W <wxjstz@126.com> --- v2 changes - Add Sob remove wrong Reviewed-by Makefile | 4 ++++ 1 file changed, 4 insertions(+)