diff options
Diffstat (limited to 'scripts/Makefile.clean')
| -rw-r--r-- | scripts/Makefile.clean | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/scripts/Makefile.clean b/scripts/Makefile.clean index 8974ea5fc878..cff33498fa16 100644 --- a/scripts/Makefile.clean +++ b/scripts/Makefile.clean | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | 4 | ||
| 5 | src := $(obj) | 5 | src := $(obj) |
| 6 | 6 | ||
| 7 | .PHONY: __clean | 7 | PHONY := __clean |
| 8 | __clean: | 8 | __clean: |
| 9 | 9 | ||
| 10 | # Shorthand for $(Q)$(MAKE) scripts/Makefile.clean obj=dir | 10 | # Shorthand for $(Q)$(MAKE) scripts/Makefile.clean obj=dir |
| @@ -87,10 +87,16 @@ endif | |||
| 87 | # Descending | 87 | # Descending |
| 88 | # --------------------------------------------------------------------------- | 88 | # --------------------------------------------------------------------------- |
| 89 | 89 | ||
| 90 | .PHONY: $(subdir-ymn) | 90 | PHONY += $(subdir-ymn) |
| 91 | $(subdir-ymn): | 91 | $(subdir-ymn): |
| 92 | $(Q)$(MAKE) $(clean)=$@ | 92 | $(Q)$(MAKE) $(clean)=$@ |
| 93 | 93 | ||
| 94 | # If quiet is set, only print short version of command | 94 | # If quiet is set, only print short version of command |
| 95 | 95 | ||
| 96 | cmd = @$(if $($(quiet)cmd_$(1)),echo ' $($(quiet)cmd_$(1))' &&) $(cmd_$(1)) | 96 | cmd = @$(if $($(quiet)cmd_$(1)),echo ' $($(quiet)cmd_$(1))' &&) $(cmd_$(1)) |
| 97 | |||
| 98 | |||
| 99 | # Declare the contents of the .PHONY variable as phony. We keep that | ||
| 100 | # information in a variable se we can use it in if_changed and friends. | ||
| 101 | |||
| 102 | .PHONY: $(PHONY) | ||
