-
-boot ::
- $(line)
- @echo "Building Utils"
- $(line)
- @$(MAKE) -C utils depend all
-
- $(line)
- @echo "Building Driver"
- $(line)
- @$(MAKE) -C driver all
-
- $(line)
- @echo "Building Includes"
- $(line)
- @$(MAKE) -C includes all
-
- $(line)
- @echo "Building Runtime System"
- $(line)
- @$(MAKE) -C runtime depend all
-
- $(line)
- @echo "Building Docs"
- $(line)
- @$(MAKE) -C docs depend all
-
-ifeq ($(HaskellCompilerType), HC_USE_HC_FILES)
- $(BuildLibs)
- $(BuildCompiler)
+#
+
+#
+# Order is important! It's e.g. necessary to descend into include/
+# before the rest to have a config.h, etc.
+#
+# If we're booting from .hc files, swap the order
+# we descend into compiler/ and lib/.
+#
+ifeq "$(BootingFromHc)" "YES"
+SUBDIRS = includes utils rts docs compiler driver
+else
+ifneq "$(ILXized)" "YES"
+SUBDIRS = includes utils driver docs compiler rts