X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc.mk;h=8d95bf82ea5b477a749d364ca72615c7915db3bc;hb=a59f5d6552674928879cae0d225e6052876d5ca4;hp=dd170bd4131d9d7c9930fbf4194d4310fcb0fa04;hpb=d48ce2dcaa251eb3b312efd4be4a9d1b68638d73;p=ghc-hetmet.git diff --git a/ghc.mk b/ghc.mk index dd170bd..8d95bf8 100644 --- a/ghc.mk +++ b/ghc.mk @@ -493,12 +493,10 @@ libraries/ghc-prim_dist-install_EXTRA_HADDOCK_SRCS = libraries/ghc-prim/dist-ins ifneq "$(CLEANING)" "YES" ifeq "$(INTEGER_LIBRARY)" "integer-gmp" libraries/base_dist-install_CONFIGURE_OPTS += --flags=-integer-simple +else ifeq "$(INTEGER_LIBRARY)" "integer-simple" +libraries/base_dist-install_CONFIGURE_OPTS += --flags=integer-simple else - ifeq "$(INTEGER_LIBRARY)" "integer-simple" - libraries/base_dist-install_CONFIGURE_OPTS += --flags=integer-simple - else $(error Unknown integer library: $(INTEGER_LIBRARY)) - endif endif endif @@ -569,6 +567,8 @@ endif ifeq "$(INTEGER_LIBRARY)" "integer-gmp" BUILD_DIRS += libraries/integer-gmp/gmp +else ifneq "$(findstring clean,$(MAKECMDGOALS))" "" +BUILD_DIRS += libraries/integer-gmp/gmp endif BUILD_DIRS += \ @@ -648,7 +648,9 @@ utils/touchy_dist_CONFIGURE_PHASE = 1 # Finally, the stage1 compiler is used to make the dependencies for # everything else, so we can now build the rest. compiler_stage2_CONFIGURE_PHASE = 3 +compiler_stage3_CONFIGURE_PHASE = 3 ghc_stage2_CONFIGURE_PHASE = 3 +ghc_stage3_CONFIGURE_PHASE = 3 $(foreach lib,$(PACKAGES) $(PACKAGES_STAGE2),$(eval \ libraries/$(lib)_dist-install_CONFIGURE_PHASE = 3)) @@ -701,7 +703,7 @@ $(foreach p,$(STAGE0_PACKAGES),$(eval libraries/$p_dist-boot_DO_HADDOCK = NO)) # Build the Haddock contents and index ifeq "$(HADDOCK_DOCS)" "YES" -libraries/index.html: inplace/bin/haddock $(ALL_HADDOCK_FILES) +libraries/index.html: inplace/bin/haddock$(exeext) $(ALL_HADDOCK_FILES) cd libraries && sh gen_contents_index --inplace ifeq "$(phase)" "" $(eval $(call all-target,library_doc_index,libraries/index.html)) @@ -1189,17 +1191,6 @@ clean : clean_files clean_libraries clean_files : "$(RM)" $(RM_OPTS) $(CLEAN_FILES) -ifneq "$(NO_CLEAN_GMP)" "YES" -CLEAN_FILES += libraries/integer-gmp/gmp/gmp.h -CLEAN_FILES += libraries/integer-gmp/gmp/libgmp.a - -clean : clean_gmp -.PHONY: clean_gmp -clean_gmp: - "$(RM)" $(RM_OPTS_REC) libraries/integer-gmp/gmp/objs - "$(RM)" $(RM_OPTS_REC) libraries/integer-gmp/gmp/gmpbuild -endif - .PHONY: clean_libraries clean_libraries: $(patsubst %,clean_libraries/%_dist-install,$(PACKAGES) $(PACKAGES_STAGE2)) clean_libraries: $(patsubst %,clean_libraries/%_dist-boot,$(STAGE0_PACKAGES))