1 #-----------------------------------------------------------------------------
2 # $Id: Makefile,v 1.23 2003/10/17 17:52:33 panne 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.
23 ifeq "$(BootingFromHc)" "YES"
24 SUBDIRS = includes rts docs compiler utils driver
26 ifneq "$(ILXized)" "YES"
27 SUBDIRS = includes utils driver docs compiler rts
30 SUBDIRS = includes utils driver docs compiler
34 ifeq ($(IncludeTestDirsInBuild),YES)
38 SRC_DIST_FILES += configure
40 DIST_CLEAN_FILES += config.cache config.status ghc.spec
43 $(RM) -rf autom4te.cache
45 ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
46 # These files need to be in the InstallShield
47 # INSTALL_DATAS rather than INSTALL_DOCS is used so these files go
48 # in the top-level directory of the distribution
49 INSTALL_DATAS += ANNOUNCE LICENSE README VERSION
52 include $(TOP)/mk/target.mk