When making bindists, check that we know where we are
authorIan Lynagh <igloo@earth.li>
Mon, 25 Aug 2008 19:09:12 +0000 (19:09 +0000)
committerIan Lynagh <igloo@earth.li>
Mon, 25 Aug 2008 19:09:12 +0000 (19:09 +0000)
docs/Makefile
driver/Makefile
libraries/Makefile
mk/bindist.mk
utils/Makefile

index 9b51adb..74eb955 100644 (file)
@@ -15,6 +15,10 @@ install-docs :: $(PAGE)
 .PHONY: binary-dist binary-dist.doc.%
 
 binary-dist: $(foreach SUBDIR,$(SUBDIRS),binary-dist.doc.$(SUBDIR))
+ifeq "$(WHERE_AM_I)" ""
+       echo "I don't know where I am" >&2
+       exit 1
+endif
        echo $(WHERE_AM_I)/Makefile >> $(BIN_DIST_LIST)
        echo $(WHERE_AM_I)/$(PAGE)  >> $(BIN_DIST_LIST)
 
index ca3504c..3fcb4be 100644 (file)
@@ -26,6 +26,10 @@ INSTALL_DATAS += ghc-usage.txt ghci-usage.txt
 CLEAN_FILES += stamp-pkg-conf-rts
 
 binary-dist:
+ifeq "$(WHERE_AM_I)" ""
+       echo "I don't know where I am" >&2
+       exit 1
+endif
        for FILE in Makefile $(INSTALL_DATAS); do echo $(WHERE_AM_I)/$$FILE >> $(BIN_DIST_LIST); done
        set -e; for d in $(SUBDIRS); do $(MAKE) -C $$d binary-dist WHERE_AM_I=$(WHERE_AM_I)/$$d; done
 
index 43216ba..55c3180 100644 (file)
@@ -387,6 +387,10 @@ BIN_DIST_LIBDIR=$(BIN_DIST_DIR)/libraries
 
 BINDIST_EXTRAS += ifBuildable/ifBuildable
 binary-dist: $(foreach SUBDIR,$(SUBDIRS),binary-dist.library.$(SUBDIR))
+ifeq "$(WHERE_AM_I)" ""
+       echo "I don't know where I am" >&2
+       exit 1
+endif
        echo $(WHERE_AM_I)/Makefile >> $(BIN_DIST_LIST)
 # XXX This needs to be changed: This ifBuildable is built with the
 # bootstrapping compiler, so isn't OS X friendly. It should be made into
index 00421cd..3018f51 100644 (file)
@@ -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
index c75e670..4bbeb35 100644 (file)
@@ -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