diff mbox series

Makefile: use $(MAKE) instead of explicit command make

Message ID 20181018130857.18227-1-christian.storm@siemens.com
State Accepted
Headers show
Series Makefile: use $(MAKE) instead of explicit command make | expand

Commit Message

Storm, Christian Oct. 18, 2018, 1:08 p.m. UTC
Use the variable MAKE instead of the explicit command
make for proper recursive make invocations.

Signed-off-by: Christian Storm <christian.storm@siemens.com>
---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Stefano Babic Oct. 22, 2018, 4:28 p.m. UTC | #1
On 18/10/18 15:08, Christian Storm wrote:
> Use the variable MAKE instead of the explicit command
> make for proper recursive make invocations.
> 
> Signed-off-by: Christian Storm <christian.storm@siemens.com>
> ---
>  Makefile | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/Makefile b/Makefile
> index 0c53430..085a28e 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -519,7 +519,7 @@ clean: $(clean-dirs)
>  		-o -name '.*.d' -o -name '.*.tmp' -o -name '*.mod.c' \
>  		-o -name modules.builtin -o -name '.tmp_*.o.*' \
>  		-o -name '*.gcno' \) -type f -print | xargs rm -f
> -	@make -C doc clean
> +	@$(MAKE) -C doc clean
>  
>  # mrproper - Delete all generated files, including .config
>  #
> @@ -576,7 +576,7 @@ FORCE:
>  
>  dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub \
>  latex latexpdf text man changes linkcheck html doctest:
> -	@make -C doc $@
> +	@$(MAKE) -C doc $@
>  
>  # Declare the contents of the .PHONY variable as phony.  We keep that
>  # information in a variable so we can use it in if_changed and friends.
> 
Applied to -master, thanks !

Best regards,
Stefano Babic
diff mbox series

Patch

diff --git a/Makefile b/Makefile
index 0c53430..085a28e 100644
--- a/Makefile
+++ b/Makefile
@@ -519,7 +519,7 @@  clean: $(clean-dirs)
 		-o -name '.*.d' -o -name '.*.tmp' -o -name '*.mod.c' \
 		-o -name modules.builtin -o -name '.tmp_*.o.*' \
 		-o -name '*.gcno' \) -type f -print | xargs rm -f
-	@make -C doc clean
+	@$(MAKE) -C doc clean
 
 # mrproper - Delete all generated files, including .config
 #
@@ -576,7 +576,7 @@  FORCE:
 
 dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub \
 latex latexpdf text man changes linkcheck html doctest:
-	@make -C doc $@
+	@$(MAKE) -C doc $@
 
 # Declare the contents of the .PHONY variable as phony.  We keep that
 # information in a variable so we can use it in if_changed and friends.