From: Masahiro Yamada Date: Tue, 26 Mar 2019 06:32:16 +0000 (+0900) Subject: kbuild: fix warning "overriding recipe for target 'Makefile'" X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=0209987fc81c8118e9fc99a115a45b273e8acc75;p=openwrt%2Fstaging%2Fblogic.git kbuild: fix warning "overriding recipe for target 'Makefile'" If you do "make Makefile" with GNU Make 3.x, the following warning is displayed: $ make Makefile Makefile:165: warning: overriding recipe for target 'Makefile' Makefile:51: warning: ignoring old recipe for target 'Makefile' make[1]: Nothing to be done for 'Makefile'. make: Nothing to be done for 'Makefile'. Signed-off-by: Masahiro Yamada --- diff --git a/Makefile b/Makefile index ab635a5507eb..f30b37569f5d 100644 --- a/Makefile +++ b/Makefile @@ -161,7 +161,7 @@ ifeq ($(need-sub-make),1) PHONY += $(MAKECMDGOALS) sub-make -$(filter-out _all sub-make $(CURDIR)/Makefile, $(MAKECMDGOALS)) _all: sub-make +$(filter-out _all sub-make $(lastword $(MAKEFILE_LIST)), $(MAKECMDGOALS)) _all: sub-make @: # Invoke a second make in the output directory, passing relevant variables