# -----------------------------------------------------------------------------
-SUBDIRS = base haskell98 template-haskell
+# The Cabal package has a GNUmakefile for standalone building, but we
+# want the Makefile.
+MFLAGS += -f Makefile
+
+SUBDIRS = base haskell98 template-haskell readline
ifeq "$(GhcLibsWithUnix)" "YES"
SUBDIRS += unix
endif
+ifeq "$(Windows)" "YES"
+SUBDIRS += $(wildcard Win32)
+endif
SUBDIRS += Cabal
-SUBDIRS += $(wildcard parsec)
# Set GhcBootLibs=YES from the command line to work with just the libraries
# needed to bootstrap GHC.
ifneq "$(GhcBootLibs)" "YES"
+SUBDIRS += $(wildcard parsec)
SUBDIRS += $(wildcard haskell-src)
SUBDIRS += $(wildcard network)
SUBDIRS += $(wildcard QuickCheck)
SUBDIRS += $(wildcard mtl)
SUBDIRS += $(wildcard fgl)
SUBDIRS += $(wildcard X11)
-ifeq "$(Windows)" "YES"
-SUBDIRS += $(wildcard Win32)
-endif
+SUBDIRS += $(wildcard time)
SUBDIRS += $(wildcard HGL)
SUBDIRS += $(wildcard OpenGL)
SUBDIRS += $(wildcard GLUT)
endif
endif
-ifeq "$(GhcLibsWithReadline)" "YES"
-SUBDIRS += $(wildcard readline)
-endif
-
# -----------------------------------------------------------------------------
DIST_CLEAN_FILES += config.cache config.status