diff options
author | Ian Lynagh <igloo@earth.li> | 2008-08-25 19:09:12 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2008-08-25 19:09:12 +0000 |
commit | 0e5f01904f7df065547e1558df8917c11f676f77 (patch) | |
tree | 53bb4f8fdef3b2e5cb9f5215a7cfc5db1173fb0a /mk | |
parent | e1826dcc04394bc35769573eea250ada2e1ad1a0 (diff) | |
download | haskell-0e5f01904f7df065547e1558df8917c11f676f77.tar.gz |
When making bindists, check that we know where we are
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bindist.mk | 4 |
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 |