summaryrefslogtreecommitdiff
path: root/rules/bindist.mk
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2010-08-18 19:12:43 +0000
committerIan Lynagh <igloo@earth.li>2010-08-18 19:12:43 +0000
commit5d6318b8c5f67327e35e174c7b6588bc2590e33c (patch)
treedf04a3206ecf557de7857b38b1ff16f9e6e97e03 /rules/bindist.mk
parentf1c16ba99441b1012dca4ebde34541c905c5e367 (diff)
downloadhaskell-5d6318b8c5f67327e35e174c7b6588bc2590e33c.tar.gz
Use make-command in rules/bindist.mk
Rather than it having its own specialised version
Diffstat (limited to 'rules/bindist.mk')
-rw-r--r--rules/bindist.mk14
1 files changed, 5 insertions, 9 deletions
diff --git a/rules/bindist.mk b/rules/bindist.mk
index f2bfd8fdd2..cf49c6930f 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