X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rules%2Fbindist.mk;h=cf49c6930f759202cd08ba588fd2ff81b13b4b3d;hb=dbd4b5697ca01d0c629511b9ff533fd487a2e919;hp=56192a595d9c22a84eb5fc287c314cbbf5adf3ed;hpb=e8842f6d21227fe800a495197be0d9f34aa862cc;p=ghc-hetmet.git diff --git a/rules/bindist.mk b/rules/bindist.mk index 56192a5..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 $(BIN_DIST_NAME)/$1; do echo $$$$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