b9e093c56e38d04e007c9c5c91033a3593675bc2
[ghc-hetmet.git] / rules / bindist.mk
1
2 # Add files to the bindist. Invoke like this:
3 #
4 # $(eval $(call bindist,utils/genapply,ghc.mk))
5
6 define bindist
7 # $1 = dir
8 # $2 = files
9
10 .PHONY: bindist_$1
11 bindist: bindist_$1
12
13 bindist_$1:
14         for f in $$(addprefix $1/,$2); do echo $(BIN_DIST_NAME)/$$$$f >> $(BIN_DIST_LIST); done
15 endef
16