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# https://gitlab.haskell.org/ghc/ghc/wikis/building/architecture 9# https://gitlab.haskell.org/ghc/ghc/wikis/building/modifying 10# 11# ----------------------------------------------------------------------------- 12 13 14# Add files to the bindist-list. Invoke like this: 15# 16# $(eval $(call bindist-list,utils/genapply,ghc.mk)) 17 18define bindist-list 19# $1 = name 20# $2 = files 21 22.PHONY: bindist-list_$1 23bindist-list: bindist-list_$1 24 25bindist-list_$1: 26 $(foreach i,$2,\ 27 $(call make-command,\ 28 for f in $i; do echo $(BIN_DIST_NAME)/$$$$f >> bindist-list; done \ 29 ) \ 30 ) 31endef 32 33