We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f91e46b commit 30cef68Copy full SHA for 30cef68
Makefile
@@ -145,7 +145,8 @@ else
145
need-sub-make := 1
146
endif
147
148
-abs_srctree := $(realpath $(dir $(lastword $(MAKEFILE_LIST))))
+this-makefile := $(lastword $(MAKEFILE_LIST))
149
+abs_srctree := $(realpath $(dir $(this-makefile)))
150
151
ifneq ($(words $(subst :, ,$(abs_srctree))), 1)
152
$(error source directory cannot contain spaces or colons)
@@ -160,8 +161,6 @@ MAKEFLAGS += --include-dir=$(abs_srctree)
160
161
162
163
-this-makefile := $(lastword $(MAKEFILE_LIST))
164
-
165
ifneq ($(filter 3.%,$(MAKE_VERSION)),)
166
# 'MAKEFLAGS += -rR' does not immediately become effective for GNU Make 3.x
167
# We need to invoke sub-make to avoid implicit rules in the top Makefile.
0 commit comments