X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc.mk;h=76b9748326e345de66965fb39c8a028feb03d77f;hb=b4f9c8cd64e727165c6a4d3968fe5009aa9c6e22;hp=0bfca27f98e36ad7ac22712319c3770e0b6a8598;hpb=eb5ecfbe174cda6b40a22f44b2b0cdfd2ef2f149;p=ghc-hetmet.git diff --git a/ghc.mk b/ghc.mk index 0bfca27..76b9748 100644 --- a/ghc.mk +++ b/ghc.mk @@ -26,6 +26,10 @@ # # Once the new build system is in HEAD, and before 6.12: # +# * separate the logic of whether to do something from the test for +# existence of the tool to do it. For example, rather than checking +# if $DIR_DOCBOOK_XSL or $XSLTPROC is "", we should have a variable +# for controlling the building of the docs. # * remove old Makefiles, add new stubs for building in subdirs # * utils/hsc2hs/Makefile # * utils/haddock/Makefile @@ -316,6 +320,16 @@ endif PACKAGES += haskeline +ifneq "$(wildcard libraries/dph)" "" +PACKAGES += \ + dph/dph-base \ + dph/dph-prim-interface \ + dph/dph-prim-seq \ + dph/dph-prim-par \ + dph/dph-seq \ + dph/dph-par +endif + BOOT_PKGS = Cabal hpc extensible-exceptions # The actual .a and .so/.dll files: needed for dependencies. @@ -515,6 +529,9 @@ $(foreach lib,$(PACKAGES),$(eval \ libraries/$(lib)_dist-install_DISABLE = YES)) endif +ifneq "$(wildcard libraries/dph)" "" +include libraries/dph/ghc.mk +endif include $(patsubst %, %/ghc.mk, $(BUILD_DIRS)) # We need -fno-warn-deprecated-flags to avoid failure with -Werror