From d3d840c0c244895ce58c303c9c05f597dd86e290 Mon Sep 17 00:00:00 2001 From: Sergei Poselenov Date: Fri, 5 Jun 2009 16:11:09 +0400 Subject: [PATCH] --- yaml --- r: 149536 b: refs/heads/master c: 7211b8b9028854eee0d03ee6231440b7fb492521 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/scripts/Makefile.headersinst | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 39fa3bd16532..86abb62f903c 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 35763e854f8aa2d579236a4670c32c078d143b3a +refs/heads/master: 7211b8b9028854eee0d03ee6231440b7fb492521 diff --git a/trunk/scripts/Makefile.headersinst b/trunk/scripts/Makefile.headersinst index 095cfc8b9dbf..0fcd83838771 100644 --- a/trunk/scripts/Makefile.headersinst +++ b/trunk/scripts/Makefile.headersinst @@ -54,8 +54,12 @@ quiet_cmd_remove = REMOVE $(unwanted) cmd_remove = rm -f $(unwanted-file) quiet_cmd_check = CHECK $(printdir) ($(words $(all-files)) files) - cmd_check = $(PERL) $< $(INSTALL_HDR_PATH)/include $(SRCARCH) \ - $(addprefix $(install)/, $(all-files)); \ +# Headers list can be pretty long, xargs helps to avoid +# the "Argument list too long" error. + cmd_check = for f in $(all-files); do \ + echo "$(install)/$${f}"; done \ + | xargs \ + $(PERL) $< $(INSTALL_HDR_PATH)/include $(SRCARCH); \ touch $@ PHONY += __headersinst __headerscheck