summaryrefslogtreecommitdiff
path: root/includes/Makefile
diff options
context:
space:
mode:
authorSimon Marlow <simonmar@microsoft.com>2007-03-26 15:59:49 +0000
committerSimon Marlow <simonmar@microsoft.com>2007-03-26 15:59:49 +0000
commitedb526551c5a4b99d9630b088616e3660a2ec4f0 (patch)
tree9486173c2da99fe79597aac2c97d3278eeec5c91 /includes/Makefile
parentf7bcfb698d9a895a168fd29eefd7dba8fd9be849 (diff)
downloadhaskell-edb526551c5a4b99d9630b088616e3660a2ec4f0.tar.gz
move "boot :: all" after the include of target.mk to fix #1095
Diffstat (limited to 'includes/Makefile')
-rw-r--r--includes/Makefile15
1 files changed, 11 insertions, 4 deletions
diff --git a/includes/Makefile b/includes/Makefile
index e653d3e9fe..cfb2a48446 100644
--- a/includes/Makefile
+++ b/includes/Makefile
@@ -163,10 +163,6 @@ CLEAN_FILES += mkGHCConstants$(exeext) GHCConstants.h
# ---------------------------------------------------------------------------
# boot setup:
#
-# Need config.h to make dependencies in the runtime system source.
-#
-boot :: all
-
#
# Install all header files
#
@@ -188,3 +184,14 @@ CLEAN_FILES += $(H_CONFIG) $(H_PLATFORM)
# Finally, slurp in the standard targets.
#
include $(TOP)/mk/target.mk
+
+# We need DerivedConstants.h in order to make dependencies in the RTS
+# sources, so 'make boot' here should behave like 'make all'.
+#
+# However, note that we should do this only *after* 'make boot' has
+# created .depend in here; otherwise an out-of-date .depend file can
+# prevent 'make boot' from working, requiring manual removal of
+# .depend (see #1095). This is why the following target comes *after*
+# target.mk is included above (target.mk contains "boot :: depend").
+#
+boot :: all