-ifeq "$(GhcWithHscBuiltViaC)" "NO"
-SUBDIRS = includes utils driver rts docs compiler lib
-else
-SUBDIRS = includes utils driver rts docs lib compiler
-endif
+# -----------------------------------------------------------------------------
+
+dir = ghc
+TOP = ..
+SPEC_TARGETS = 1 2 3
+include $(TOP)/mk/sub-makefile.mk
+
+FAST_MAKE_OPTS += compiler_stage1_NO_BUILD_DEPS=YES \
+ compiler_stage2_NO_BUILD_DEPS=YES \
+ compiler_stage3_NO_BUILD_DEPS=YES \
+ ghc_stage1_NO_BUILD_DEPS=YES \
+ ghc_stage2_NO_BUILD_DEPS=YES \
+ ghc_stage3_NO_BUILD_DEPS=YES
+
+.PHONY: 1 2 3