Clean gmp.h
[ghc-hetmet.git] / gmp / ghc.mk
index 1a71e17..8ae6459 100644 (file)
@@ -1,3 +1,15 @@
+# -----------------------------------------------------------------------------
+#
+# (c) 2009 The University of Glasgow
+#
+# This file is part of the GHC build system.
+#
+# To understand how the build system works and how to modify it, see
+#      http://hackage.haskell.org/trac/ghc/wiki/Building/Architecture
+#      http://hackage.haskell.org/trac/ghc/wiki/Building/Modifying
+#
+# -----------------------------------------------------------------------------
+
 
 # Compile GMP only if we don't have it already
 #
@@ -83,8 +95,10 @@ gmp/libgmp.a:
        $(CP) gmp/gmpbuild/.libs/libgmp.a gmp/
        $(RANLIB) gmp/libgmp.a
 
+ifneq "$(NO_CLEAN_GMP)" "YES"
 $(eval $(call clean-target,gmp,,\
-  gmp/libgmp.a gmp/gmpbuild gmp/$(GMP_DIR)))
+  gmp/libgmp.a gmp/gmp.h gmp/gmpbuild gmp/$(GMP_DIR)))
+endif
 
 # XXX TODO:
 #stamp.gmp.shared: