-# Begin by slurping in the boilerplate from one level up.
-# Remember, TOP is the top level of the innermost level
-# (FPTOOLS_TOP is the fptools top)
+GHC_TOP := $(TOP)
+
+# Include this first, because the top-level .mk files might depend on
+# the values of $(ProjectXXX) variables. (in fact they might/should not,
+# but we're not brave enough to move this include later --SDM).
+-include $(GHC_TOP)/mk/version.mk