-# $(error Q$(INSTALL_PROGS)W)
-foo:
- echo Q$(INSTALL_PROGS)W$(GHC_PROG)E
- echo Q$(INSTALL_LIBEXECS)W$(GHC_PROG)E
+ifeq "$(DOING_BIN_DIST)" "YES"
+# This is derived from the sources when we are in a source tree, but we
+# don't have any sources in a bindist, so we have to shortcut it
+HS_IFACES := $(wildcard stage$(stage)/*/*.hi)
+endif