# -----------------------------------------------------------------------------
# Binary distributions
-$(eval $(call bindist,.,\
+# This is split in 2 because of the shell argument limit
+$(eval $(call bindist,root1,\
LICENSE \
configure config.sub config.guess install-sh \
extra-gcc-opts.in \
$(INSTALL_BINS) \
$(INSTALL_DOCS) \
$(INSTALL_LIBRARY_DOCS) \
+ ))
+$(eval $(call bindist,root2,\
$(addsuffix /*,$(INSTALL_HTML_DOC_DIRS)) \
docs/index.html \
$(wildcard libraries/*/dist-install/doc/) \
# $(eval $(call bindist,utils/genapply,ghc.mk))
define bindist
-# $1 = dir
+# $1 = name
# $2 = files
.PHONY: bindist_$1
bindist: bindist_$1
bindist_$1:
- for f in $2; do echo $1/$(BIN_DIST_NAME)/$$$$f >> $(BIN_DIST_LIST); done
+ for f in $2; do echo $(BIN_DIST_NAME)/$$$$f >> $(BIN_DIST_LIST); done
endef