summaryrefslogtreecommitdiff
path: root/ghc.mk
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2011-01-17 12:11:55 +0000
committerIan Lynagh <igloo@earth.li>2011-01-17 12:11:55 +0000
commitff30c8f61ed7318563a4f9185815e80cf35e363d (patch)
tree3fcf96131481e27ddc282193b612a3dc6e675656 /ghc.mk
parent2e3235c9ac222f0695e6157bb2b868950512c642 (diff)
downloadhaskell-ff30c8f61ed7318563a4f9185815e80cf35e363d.tar.gz
Tidy up gmp cleaning
Diffstat (limited to 'ghc.mk')
-rw-r--r--ghc.mk13
1 files changed, 2 insertions, 11 deletions
diff --git a/ghc.mk b/ghc.mk
index d1565e9720..5040ff5097 100644
--- a/ghc.mk
+++ b/ghc.mk
@@ -567,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 += \
@@ -1187,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))