X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=rules%2Fbindist.mk;h=cf49c6930f759202cd08ba588fd2ff81b13b4b3d;hp=f2bfd8fdd26271a0d0c561c6cf22f69547aca6a0;hb=97254d02c5460c41935e01765bdf52a07431da04;hpb=b02c901169b35f21ba1f037a4bef8e4ce89abc15 diff --git a/rules/bindist.mk b/rules/bindist.mk index f2bfd8f..cf49c69 100644 --- a/rules/bindist.mk +++ b/rules/bindist.mk @@ -23,14 +23,10 @@ define bindist bindist: bindist_$1 bindist_$1: -$(foreach i,$2,$(call bindist_item,$i)) -endef - -define bindist_item - -# $1 = the line -# The formatting of this definition (e.g. the blank line above) is -# important, in order to get make to generate the right makefile code. - for f in $1; do echo $(BIN_DIST_NAME)/$$$$f >> $(BIN_DIST_LIST); done + $(foreach i,$2,\ + $(call make-command,\ + for f in $i; do echo $(BIN_DIST_NAME)/$$$$f >> $(BIN_DIST_LIST); done \ + ) \ + ) endef