diff options
| -rw-r--r-- | scripts/Makefile.headersinst | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/Makefile.headersinst b/scripts/Makefile.headersinst index 095cfc8b9dbf..0fcd83838771 100644 --- a/scripts/Makefile.headersinst +++ b/scripts/Makefile.headersinst | |||
| @@ -54,8 +54,12 @@ quiet_cmd_remove = REMOVE $(unwanted) | |||
| 54 | cmd_remove = rm -f $(unwanted-file) | 54 | cmd_remove = rm -f $(unwanted-file) |
| 55 | 55 | ||
| 56 | quiet_cmd_check = CHECK $(printdir) ($(words $(all-files)) files) | 56 | quiet_cmd_check = CHECK $(printdir) ($(words $(all-files)) files) |
| 57 | cmd_check = $(PERL) $< $(INSTALL_HDR_PATH)/include $(SRCARCH) \ | 57 | # Headers list can be pretty long, xargs helps to avoid |
| 58 | $(addprefix $(install)/, $(all-files)); \ | 58 | # the "Argument list too long" error. |
| 59 | cmd_check = for f in $(all-files); do \ | ||
| 60 | echo "$(install)/$${f}"; done \ | ||
| 61 | | xargs \ | ||
| 62 | $(PERL) $< $(INSTALL_HDR_PATH)/include $(SRCARCH); \ | ||
| 59 | touch $@ | 63 | touch $@ |
| 60 | 64 | ||
| 61 | PHONY += __headersinst __headerscheck | 65 | PHONY += __headersinst __headerscheck |
