summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2008-08-25 19:09:12 +0000
committerIan Lynagh <igloo@earth.li>2008-08-25 19:09:12 +0000
commit0e5f01904f7df065547e1558df8917c11f676f77 (patch)
tree53bb4f8fdef3b2e5cb9f5215a7cfc5db1173fb0a /mk
parente1826dcc04394bc35769573eea250ada2e1ad1a0 (diff)
downloadhaskell-0e5f01904f7df065547e1558df8917c11f676f77.tar.gz
When making bindists, check that we know where we are
Diffstat (limited to 'mk')
-rw-r--r--mk/bindist.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/mk/bindist.mk b/mk/bindist.mk
index 00421cda72..3018f51a44 100644
--- a/mk/bindist.mk
+++ b/mk/bindist.mk
@@ -5,6 +5,10 @@ EXE_DIST_DIR = dist-install
# XXX This is a bit of a mess. Really we should be just asking Cabal
# what it would install and putting those files in the bindist.
binary-dist:
+ifeq "$(WHERE_AM_I)" ""
+ echo "I don't know where I am" >&2
+ exit 1
+endif
# General bits
-find . -name Makefile -exec echo $(WHERE_AM_I)/{} \; >> $(BIN_DIST_LIST) 2> /dev/null
-find . -name LICENSE -exec echo $(WHERE_AM_I)/{} \; >> $(BIN_DIST_LIST) 2> /dev/null