If ghci runs out of labels, panic
[ghc-hetmet.git] / ghc.mk
diff --git a/ghc.mk b/ghc.mk
index b2701bf..94a6adf 100644 (file)
--- a/ghc.mk
+++ b/ghc.mk
@@ -29,9 +29,7 @@
 #     * docs/vh/Makefile
 #     * rts/dotnet/Makefile
 #     * utils/Makefile
-#   * GhcProfiled
 #   * optionally install stage3?
-#   * shared libraries, way dyn
 #   * add Makefiles for the rest of the utils/ programs that aren't built
 #     by default (need to exclude them from 'make all' too)
 #
@@ -297,7 +295,12 @@ define addPackage # args: $1 = package, $2 = condition
 endef
 
 $(eval $(call addPackage,ghc-prim))
+ifeq "$(CLEANING)" "YES"
+$(eval $(call addPackage,integer-gmp))
+$(eval $(call addPackage,integer-simple))
+else
 $(eval $(call addPackage,$(INTEGER_LIBRARY)))
+endif
 $(eval $(call addPackage,base))
 $(eval $(call addPackage,filepath))
 $(eval $(call addPackage,array))