X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc.mk;h=5040ff5097c0a90efd6de60a2a0fdff37d8105e3;hb=bf818ff8d2777aac58ec8357ecb5f7f43b98743d;hp=b47b49c5e7329200847aef21fb391b59568b40f7;hpb=a54c59a58b6bb2fb5bbfd7378c55c4e0317442c4;p=ghc-hetmet.git diff --git a/ghc.mk b/ghc.mk index b47b49c..5040ff5 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 += \ @@ -641,6 +641,7 @@ ghc_stage1_CONFIGURE_PHASE = 1 driver/ghc_dist_CONFIGURE_PHASE = 1 driver/ghci_dist_CONFIGURE_PHASE = 1 driver/haddock_dist_CONFIGURE_PHASE = 1 +utils/touchy_dist_CONFIGURE_PHASE = 1 # In phase 2, the phase 1 things actually get built @@ -652,7 +653,6 @@ ghc_stage2_CONFIGURE_PHASE = 3 $(foreach lib,$(PACKAGES) $(PACKAGES_STAGE2),$(eval \ libraries/$(lib)_dist-install_CONFIGURE_PHASE = 3)) -utils/touchy_dist_CONFIGURE_PHASE = 3 utils/hp2ps_dist_CONFIGURE_PHASE = 3 utils/genapply_dist_CONFIGURE_PHASE = 3 utils/haddock_dist_CONFIGURE_PHASE = 3 @@ -1189,17 +1189,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))