summaryrefslogtreecommitdiff
path: root/utils
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 /utils
parente1826dcc04394bc35769573eea250ada2e1ad1a0 (diff)
downloadhaskell-0e5f01904f7df065547e1558df8917c11f676f77.tar.gz
When making bindists, check that we know where we are
Diffstat (limited to 'utils')
-rw-r--r--utils/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/Makefile b/utils/Makefile
index c75e670508..4bbeb35f56 100644
--- a/utils/Makefile
+++ b/utils/Makefile
@@ -61,6 +61,10 @@ endif
WITH_EITHER = $(sort $(WITH_BOOTSTRAPPING_COMPILER) $(WITH_STAGE1))
binary-dist: $(foreach P,$(WITH_STAGE1),binary-dist.$P)
+ifeq "$(WHERE_AM_I)" ""
+ echo "I don't know where I am" >&2
+ exit 1
+endif
echo $(WHERE_AM_I)/Makefile >> $(BIN_DIST_LIST)
set -e; for d in $(SUBDIRS); do $(MAKE) -C $$d binary-dist WHERE_AM_I=$(WHERE_AM_I)/$$d; done