Fix Trac #3219: type of a record update
[ghc-hetmet.git] / rules / bindist.mk
1 # -----------------------------------------------------------------------------
2 #
3 # (c) 2009 The University of Glasgow
4 #
5 # This file is part of the GHC build system.
6 #
7 # To understand how the build system works and how to modify it, see
8 #      http://hackage.haskell.org/trac/ghc/wiki/Building/Architecture
9 #      http://hackage.haskell.org/trac/ghc/wiki/Building/Modifying
10 #
11 # -----------------------------------------------------------------------------
12
13
14 # Add files to the bindist. Invoke like this:
15 #
16 # $(eval $(call bindist,utils/genapply,ghc.mk))
17
18 define bindist
19 # $1 = dir
20 # $2 = files
21
22 .PHONY: bindist_$1
23 bindist: bindist_$1
24
25 bindist_$1:
26         for f in $$(addprefix $1/,$2); do echo $(BIN_DIST_NAME)/$$$$f >> $(BIN_DIST_LIST); done
27 endef
28