[commit: ghc] master: Add “BINARY_DIST_DIR” to Makefile (274e9b2)
git at git.haskell.org
git at git.haskell.org
Fri Jul 28 16:37:17 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/274e9b27de30e1b7d5db8cb97b34d53ae9609a9b/ghc
>---------------------------------------------------------------
commit 274e9b27de30e1b7d5db8cb97b34d53ae9609a9b
Author: Moritz Angermann <moritz.angermann at gmail.com>
Date: Fri Jul 28 11:44:33 2017 -0400
Add “BINARY_DIST_DIR” to Makefile
This allows to customize the location where binary distributions are
placed with `make binary-dist`.
E.g. using:
```
BINARY_DIST_DIR=/path/to/bindists make binary-dist
```
will place binary dists outside of the source tree into the given
folder.
This change falls back to ".", which is the old behaviour.
Test Plan: build binary-dist
Reviewers: bgamari, austin
Reviewed By: bgamari
Subscribers: rwbarton, thomie
Differential Revision: https://phabricator.haskell.org/D3798
>---------------------------------------------------------------
274e9b27de30e1b7d5db8cb97b34d53ae9609a9b
Makefile | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 9b888e7..8046e36 100644
--- a/Makefile
+++ b/Makefile
@@ -129,9 +129,15 @@ endif
@echo "===--- building final phase"
$(MAKE) --no-print-directory -f ghc.mk phase=final $@
+# if BINARY_DIST_DIR is not set, assume we want the old
+# behaviour of placing the binary dist into the current
+# directory. Provide BINARY_DIST_DIR to put the final
+# binary distribution elsewhere.
+BINARY_DIST_DIR ?= .
+
.PHONY: binary-dist
binary-dist: binary-dist-prep
- mv bindistprep/*.tar.$(TAR_COMP_EXT) .
+ mv bindistprep/*.tar.$(TAR_COMP_EXT) "$(BINARY_DIST_DIR)"
.PHONY: binary-dist-prep
binary-dist-prep:
More information about the ghc-commits
mailing list