X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=rules%2Fbindist.mk;h=cf49c6930f759202cd08ba588fd2ff81b13b4b3d;hp=b9e093c56e38d04e007c9c5c91033a3593675bc2;hb=7fc01c4671980ea3c66d549c0ece4d82fd3f5ade;hpb=34cc75e1a62638f2833815746ebce0a9114dc26b diff --git a/rules/bindist.mk b/rules/bindist.mk index b9e093c..cf49c69 100644 --- a/rules/bindist.mk +++ b/rules/bindist.mk @@ -1,16 +1,32 @@ +# ----------------------------------------------------------------------------- +# +# (c) 2009 The University of Glasgow +# +# This file is part of the GHC build system. +# +# To understand how the build system works and how to modify it, see +# http://hackage.haskell.org/trac/ghc/wiki/Building/Architecture +# http://hackage.haskell.org/trac/ghc/wiki/Building/Modifying +# +# ----------------------------------------------------------------------------- + # Add files to the bindist. Invoke like this: # # $(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 $$(addprefix $1/,$2); 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