[commit: ghc] master: Build system: rename bindist to bindist-list... (bdf7f13)
git at git.haskell.org
git at git.haskell.org
Thu Jul 2 19:57:49 UTC 2015
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/bdf7f133d1d4bcc7ca3c0bbadda51ef542cccfb0/ghc
>---------------------------------------------------------------
commit bdf7f133d1d4bcc7ca3c0bbadda51ef542cccfb0
Author: Thomas Miedema <thomasmiedema at gmail.com>
Date: Thu Jul 2 21:48:56 2015 +0200
Build system: rename bindist to bindist-list...
...to prevent accidental use of `make bindist`, when `make binary-dist`
is called for.
>---------------------------------------------------------------
bdf7f133d1d4bcc7ca3c0bbadda51ef542cccfb0
Makefile | 2 +-
ghc.mk | 2 +-
rules/bindist.mk | 12 ++++++------
3 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/Makefile b/Makefile
index f0f864d..c08ccc5 100644
--- a/Makefile
+++ b/Makefile
@@ -119,7 +119,7 @@ ifeq "$(mingw32_TARGET_OS)" "1"
$(MAKE) --no-print-directory -f ghc.mk windows-binary-dist-prep
else
rm -f bindist-list
- $(MAKE) --no-print-directory -f ghc.mk bindist BINDIST=YES
+ $(MAKE) --no-print-directory -f ghc.mk bindist-list BINDIST=YES
$(MAKE) --no-print-directory -f ghc.mk unix-binary-dist-prep
endif
diff --git a/ghc.mk b/ghc.mk
index 1b50472..6c1d88d 100644
--- a/ghc.mk
+++ b/ghc.mk
@@ -946,7 +946,7 @@ ifneq "$(CLEANING)" "YES"
# This rule seems to hold some files open on Windows which prevents
# cleaning, perhaps due to the $(wildcard).
-$(eval $(call bindist,.,\
+$(eval $(call bindist-list,.,\
LICENSE \
README \
INSTALL \
diff --git a/rules/bindist.mk b/rules/bindist.mk
index 06f654d..49d8aa4 100644
--- a/rules/bindist.mk
+++ b/rules/bindist.mk
@@ -11,18 +11,18 @@
# -----------------------------------------------------------------------------
-# Add files to the bindist. Invoke like this:
+# Add files to the bindist-list. Invoke like this:
#
-# $(eval $(call bindist,utils/genapply,ghc.mk))
+# $(eval $(call bindist-list,utils/genapply,ghc.mk))
-define bindist
+define bindist-list
# $1 = name
# $2 = files
-.PHONY: bindist_$1
-bindist: bindist_$1
+.PHONY: bindist-list_$1
+bindist-list: bindist-list_$1
-bindist_$1:
+bindist-list_$1:
$(foreach i,$2,\
$(call make-command,\
for f in $i; do echo $(BIN_DIST_NAME)/$$$$f >> bindist-list; done \
More information about the ghc-commits
mailing list