1 #-----------------------------------------------------------------------------
2 # $Id: Makefile,v 1.24 2004/02/12 02:11:34 mthomas Exp $
6 include $(TOP)/mk/boilerplate.mk
10 # everything needs utils
11 # includes/ needs driver (to easily c.pile mkNativeGen.c)
12 # make depend except in {utils,driver} needs includes
13 # RTS and compiler need includes
17 # Order is important! It's e.g. necessary to descend into include/
18 # before the rest to have a config.h, etc.
20 # If we're booting from .hc files, swap the order
21 # we descend into subdirs - to boot utils must be before driver.
24 # First - check whether we should build the docs directory.
25 # On Windows, the tools to build docs are not always available.
27 ifneq "$(SGMLDocWays)" ""
33 ifeq "$(BootingFromHc)" "YES"
34 SUBDIRS = includes rts $(DOCS_DIR) compiler utils driver
36 ifneq "$(ILXized)" "YES"
37 SUBDIRS = includes utils driver $(DOCS_DIR) compiler rts
40 SUBDIRS = includes utils driver $(DOCS_DIR) compiler
44 ifeq ($(IncludeTestDirsInBuild),YES)
48 SRC_DIST_FILES += configure
50 DIST_CLEAN_FILES += config.cache config.status ghc.spec
53 $(RM) -rf autom4te.cache
55 ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
56 # These files need to be in the InstallShield
57 # INSTALL_DATAS rather than INSTALL_DOCS is used so these files go
58 # in the top-level directory of the distribution
59 INSTALL_DATAS += ANNOUNCE LICENSE README VERSION
62 include $(TOP)/mk/target.mk