aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.m@jp.panasonic.com>2014-09-09 07:02:22 -0400
committerMichal Marek <mmarek@suse.cz>2014-10-01 16:44:21 -0400
commit7ff525712acf9325e9acdb27bbc93049ea2e850c (patch)
tree91cdba6db75d21fb9c50aa89fbba482ba835fd59 /Makefile
parentbe8af2d54a66911693eddc556e4f7a866670082b (diff)
kbuild: fake the "Entering directory ..." message more simply
Commit c2e28dc975ea87feed84415006ae143424912ac7 (kbuild: Print the name of the build directory) added a gimmick to show the "Entering directory ...". Instead of echoing the hard-coded message (that is, we need to know the exact message), moving --no-print-directory would be easier. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Acked-by: Peter Foley <pefoley2@pefoley.com> Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 8 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index e43244263306..9eea3c0424db 100644
--- a/Makefile
+++ b/Makefile
@@ -10,11 +10,9 @@ NAME = Shuffling Zombie Juror
10# Comments in this file are targeted only to the developer, do not 10# Comments in this file are targeted only to the developer, do not
11# expect to learn how to build the kernel reading this file. 11# expect to learn how to build the kernel reading this file.
12 12
13# Do not: 13# Do not use make's built-in rules and variables
14# o use make's built-in rules and variables 14# (this increases performance and avoids hard-to-debug behaviour);
15# (this increases performance and avoids hard-to-debug behaviour); 15MAKEFLAGS += -rR
16# o print "Entering directory ...";
17MAKEFLAGS += -rR --no-print-directory
18 16
19# Avoid funny character set dependencies 17# Avoid funny character set dependencies
20unexport LC_ALL 18unexport LC_ALL
@@ -172,13 +170,7 @@ PHONY += $(MAKECMDGOALS) sub-make
172$(filter-out _all sub-make $(CURDIR)/Makefile, $(MAKECMDGOALS)) _all: sub-make 170$(filter-out _all sub-make $(CURDIR)/Makefile, $(MAKECMDGOALS)) _all: sub-make
173 @: 171 @:
174 172
175# Fake the "Entering directory" message once, so that IDEs/editors are
176# able to understand relative filenames.
177 echodir := @echo
178 quiet_echodir := @echo
179silent_echodir := @:
180sub-make: FORCE 173sub-make: FORCE
181 $($(quiet)echodir) "make[1]: Entering directory \`$(KBUILD_OUTPUT)'"
182 $(if $(KBUILD_VERBOSE:1=),@)$(MAKE) -C $(KBUILD_OUTPUT) \ 174 $(if $(KBUILD_VERBOSE:1=),@)$(MAKE) -C $(KBUILD_OUTPUT) \
183 KBUILD_SRC=$(CURDIR) \ 175 KBUILD_SRC=$(CURDIR) \
184 KBUILD_EXTMOD="$(KBUILD_EXTMOD)" -f $(CURDIR)/Makefile \ 176 KBUILD_EXTMOD="$(KBUILD_EXTMOD)" -f $(CURDIR)/Makefile \
@@ -192,6 +184,11 @@ endif # ifeq ($(KBUILD_SRC),)
192# We process the rest of the Makefile if this is the final invocation of make 184# We process the rest of the Makefile if this is the final invocation of make
193ifeq ($(skip-makefile),) 185ifeq ($(skip-makefile),)
194 186
187# Do not print "Entering directory ...",
188# but we want to display it when entering to the output directory
189# so that IDEs/editors are able to understand relative filenames.
190MAKEFLAGS += --no-print-directory
191
195# If building an external module we do not care about the all: rule 192# If building an external module we do not care about the all: rule
196# but instead _all depend on modules 193# but instead _all depend on modules
197PHONY += all 194PHONY += all