Deleted Added
full compact
Makefile (0663c68c) Makefile (93fdddfe)
1# SPDX-License-Identifier: GPL-2.0
2VERSION = 5
3PATCHLEVEL = 7
4SUBLEVEL = 0
5EXTRAVERSION = -rc5
6NAME = Kleptomaniac Octopus
7
8# *DOCUMENTATION*

--- 143 unchanged lines hidden (view full) ---

152# Look for make include files relative to root of kernel src
153#
154# This does not become effective immediately because MAKEFLAGS is re-parsed
155# once after the Makefile is read. We need to invoke sub-make.
156MAKEFLAGS += --include-dir=$(abs_srctree)
157need-sub-make := 1
158endif
159
1# SPDX-License-Identifier: GPL-2.0
2VERSION = 5
3PATCHLEVEL = 7
4SUBLEVEL = 0
5EXTRAVERSION = -rc5
6NAME = Kleptomaniac Octopus
7
8# *DOCUMENTATION*

--- 143 unchanged lines hidden (view full) ---

152# Look for make include files relative to root of kernel src
153#
154# This does not become effective immediately because MAKEFLAGS is re-parsed
155# once after the Makefile is read. We need to invoke sub-make.
156MAKEFLAGS += --include-dir=$(abs_srctree)
157need-sub-make := 1
158endif
159
160this-makefile := $(lastword $(MAKEFILE_LIST))
161
160ifneq ($(filter 3.%,$(MAKE_VERSION)),)
161# 'MAKEFLAGS += -rR' does not immediately become effective for GNU Make 3.x
162# We need to invoke sub-make to avoid implicit rules in the top Makefile.
163need-sub-make := 1
164# Cancel implicit rules for this Makefile.
162ifneq ($(filter 3.%,$(MAKE_VERSION)),)
163# 'MAKEFLAGS += -rR' does not immediately become effective for GNU Make 3.x
164# We need to invoke sub-make to avoid implicit rules in the top Makefile.
165need-sub-make := 1
166# Cancel implicit rules for this Makefile.
165$(lastword $(MAKEFILE_LIST)): ;
167$(this-makefile): ;
166endif
167
168export abs_srctree abs_objtree
169export sub_make_done := 1
170
171ifeq ($(need-sub-make),1)
172
173PHONY += $(MAKECMDGOALS) sub-make
174
168endif
169
170export abs_srctree abs_objtree
171export sub_make_done := 1
172
173ifeq ($(need-sub-make),1)
174
175PHONY += $(MAKECMDGOALS) sub-make
176
175$(filter-out _all sub-make $(lastword $(MAKEFILE_LIST)), $(MAKECMDGOALS)) _all: sub-make
177$(filter-out _all sub-make $(this-makefile), $(MAKECMDGOALS)) _all: sub-make
176 @:
177
178# Invoke a second make in the output directory, passing relevant variables
179sub-make:
180 $(Q)$(MAKE) -C $(abs_objtree) -f $(abs_srctree)/Makefile $(MAKECMDGOALS)
181
182endif # need-sub-make
183endif # sub_make_done

--- 1670 unchanged lines hidden ---
178 @:
179
180# Invoke a second make in the output directory, passing relevant variables
181sub-make:
182 $(Q)$(MAKE) -C $(abs_objtree) -f $(abs_srctree)/Makefile $(MAKECMDGOALS)
183
184endif # need-sub-make
185endif # sub_make_done

--- 1670 unchanged lines hidden ---