X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2FMakefile;h=68541ab7daeaca51fd06e2ddaae73a335b82a101;hb=c9c3723729bb955f56d228607b120962cf7af618;hp=d247d623310b36c36b723578ed3427609eb57938;hpb=438596897ebbe25a07e1c82085cfbc5bdb00f09e;p=ghc-hetmet.git diff --git a/ghc/Makefile b/ghc/Makefile index d247d62..68541ab 100644 --- a/ghc/Makefile +++ b/ghc/Makefile @@ -1,5 +1,5 @@ #----------------------------------------------------------------------------- -# $Id: Makefile,v 1.8 1998/12/02 13:17:13 simonm Exp $ +# $Id: Makefile,v 1.14 2000/11/06 13:14:52 simonmar Exp $ # TOP=. @@ -14,16 +14,16 @@ include $(TOP)/mk/boilerplate.mk # # -# Order is important! driver/ has to come before includes/ which -# again has to come before the rest. +# 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 "$(GhcWithHscBuiltViaC)" "NO" -SUBDIRS = utils driver includes rts docs compiler lib +SUBDIRS = includes utils driver docs compiler rts lib else -SUBDIRS = utils driver includes rts docs lib compiler +SUBDIRS = includes utils driver rts docs lib compiler endif # Easier to copy @@ -31,4 +31,13 @@ ifeq "$(BIN_DIST)" "1" SUBDIRS := $(filter-out docs,$(SUBDIRS)) endif +ifeq ($(IncludeTestDirsInBuild),YES) +SUBDIRS += tests +endif + +SRC_DIST_FILES += configure + +DIST_CLEAN_FILES += ghc.spec config.status +MAINTAINER_CLEAN_FILES += configure + include $(TOP)/mk/target.mk