blob: 49d8aa4d3474c78910876f6813dd1a8523a7350d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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://ghc.haskell.org/trac/ghc/wiki/Building/Architecture
# http://ghc.haskell.org/trac/ghc/wiki/Building/Modifying
#
# -----------------------------------------------------------------------------
# Add files to the bindist-list. Invoke like this:
#
# $(eval $(call bindist-list,utils/genapply,ghc.mk))
define bindist-list
# $1 = name
# $2 = files
.PHONY: bindist-list_$1
bindist-list: bindist-list_$1
bindist-list_$1:
$(foreach i,$2,\
$(call make-command,\
for f in $i; do echo $(BIN_DIST_NAME)/$$$$f >> bindist-list; done \
) \
)
endef
|