Fix the $(GMP_DIR) path that we remove
authorIan Lynagh <igloo@earth.li>
Mon, 19 Apr 2010 19:35:38 +0000 (19:35 +0000)
committerIan Lynagh <igloo@earth.li>
Mon, 19 Apr 2010 19:35:38 +0000 (19:35 +0000)
gmp/ghc.mk

index 3e891bc..0e6a4aa 100644 (file)
@@ -108,7 +108,7 @@ GMP_TARBALL := $(wildcard libraries/integer-gmp/gmp/tarball/gmp*.tar.bz2)
 GMP_DIR := $(patsubst libraries/integer-gmp/gmp/tarball/%-nodoc-patched.tar.bz2,%,$(GMP_TARBALL))
 
 libraries/integer-gmp/gmp/libgmp.a libraries/integer-gmp/gmp/gmp.h:
-       $(RM) -rf $(GMP_DIR) libraries/integer-gmp/gmp/gmpbuild libraries/integer-gmp/gmp/objs
+       $(RM) -rf libraries/integer-gmp/gmp/$(GMP_DIR) libraries/integer-gmp/gmp/gmpbuild libraries/integer-gmp/gmp/objs
        cat $(GMP_TARBALL) | $(BZIP2) -d | { cd libraries/integer-gmp/gmp && $(TAR) -xf - ; }
        mv libraries/integer-gmp/gmp/$(GMP_DIR) libraries/integer-gmp/gmp/gmpbuild
        chmod +x libraries/integer-gmp/gmp/ln