diff options
Diffstat (limited to 'scripts/Makefile.build')
-rw-r--r-- | scripts/Makefile.build | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 6ac96ea92bfc..7afe3e76cb5a 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build | |||
@@ -4,7 +4,7 @@ | |||
4 | 4 | ||
5 | src := $(obj) | 5 | src := $(obj) |
6 | 6 | ||
7 | .PHONY: __build | 7 | PHONY := __build |
8 | __build: | 8 | __build: |
9 | 9 | ||
10 | # Read .config if it exist, otherwise ignore | 10 | # Read .config if it exist, otherwise ignore |
@@ -308,14 +308,14 @@ targets += $(multi-used-y) $(multi-used-m) | |||
308 | # Descending | 308 | # Descending |
309 | # --------------------------------------------------------------------------- | 309 | # --------------------------------------------------------------------------- |
310 | 310 | ||
311 | .PHONY: $(subdir-ym) | 311 | PHONY += $(subdir-ym) |
312 | $(subdir-ym): | 312 | $(subdir-ym): |
313 | $(Q)$(MAKE) $(build)=$@ | 313 | $(Q)$(MAKE) $(build)=$@ |
314 | 314 | ||
315 | # Add FORCE to the prequisites of a target to force it to be always rebuilt. | 315 | # Add FORCE to the prequisites of a target to force it to be always rebuilt. |
316 | # --------------------------------------------------------------------------- | 316 | # --------------------------------------------------------------------------- |
317 | 317 | ||
318 | .PHONY: FORCE | 318 | PHONY += FORCE |
319 | 319 | ||
320 | FORCE: | 320 | FORCE: |
321 | 321 | ||
@@ -330,3 +330,9 @@ cmd_files := $(wildcard $(foreach f,$(targets),$(dir $(f)).$(notdir $(f)).cmd)) | |||
330 | ifneq ($(cmd_files),) | 330 | ifneq ($(cmd_files),) |
331 | include $(cmd_files) | 331 | include $(cmd_files) |
332 | endif | 332 | endif |
333 | |||
334 | |||
335 | # Declare the contents of the .PHONY variable as phony. We keep that | ||
336 | # information in a variable se we can use it in if_changed and friends. | ||
337 | |||
338 | .PHONY: $(PHONY) | ||