diff options
author | Ian Lynagh <ian@well-typed.com> | 2012-10-25 14:55:23 +0100 |
---|---|---|
committer | Ian Lynagh <ian@well-typed.com> | 2012-10-25 14:55:23 +0100 |
commit | 86e247968f6b29fd482f9991b0e3a6ec1cc2e265 (patch) | |
tree | 15e8cf63f851d460a0bbb73bbebe98cda780d1cc /ghc.mk | |
parent | 38aeca27e7f395bb307e3c22b39feafa7690a1ad (diff) | |
download | haskell-86e247968f6b29fd482f9991b0e3a6ec1cc2e265.tar.gz |
Fix the transformers-building code, and move it from validate to ghc.mk
This makes life easier, as ghc.mk has access to HADDOCK_DOCS
and DYNAMIC_BY_DEFAULT, so knows the right way to build it.
Diffstat (limited to 'ghc.mk')
-rw-r--r-- | ghc.mk | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -1306,6 +1306,30 @@ bootstrapping-files: $(libffi_HEADERS) .DELETE_ON_ERROR: # ----------------------------------------------------------------------------- + +ifeq "$(HADDOCK_DOCS)" "YES" +BINDIST_HADDOCK_FLAG = --with-haddock="$(BINDIST_PREFIX)/bin/haddock" +endif +ifeq "$(DYNAMIC_BY_DEFAULT)" "YES" +BINDIST_LIBRARY_FLAGS = --enable-shared --disable-library-vanilla +else +BINDIST_LIBRARY_FLAGS = --enable-library-vanilla --disable-shared +endif +BINDIST_LIBRARY_FLAGS += --disable-library-prof + +.PHONY: validate_build_transformers +validate_build_transformers: + cd libraries/transformers && "$(BINDIST_PREFIX)/bin/ghc" --make Setup + cd libraries/transformers && ./Setup configure --with-ghc="$(BINDIST_PREFIX)/bin/ghc" $(BINDIST_HADDOCK_FLAG) $(BINDIST_LIBRARY_FLAGS) --global --builddir=dist-bindist --prefix="$(BINDIST_PREFIX)" + cd libraries/transformers && ./Setup build --builddir=dist-bindist +ifeq "$(HADDOCK_DOCS)" "YES" + cd libraries/transformers && ./Setup haddock --builddir=dist-bindist +endif + cd libraries/transformers && ./Setup install --builddir=dist-bindist + cd libraries/transformers && ./Setup clean --builddir=dist-bindist + cd libraries/transformers && rm -f Setup Setup.exe Setup.hi Setup.o + +# ----------------------------------------------------------------------------- # Numbered phase targets .PHONY: phase_0_builds |