[commit: ghc] master: Fix cleaning buildinfo files (ce545f0)

Ian Lynagh igloo at earth.li
Wed Jan 11 19:32:57 CET 2012


Repository : ssh://darcs.haskell.org//srv/darcs/ghc

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/ce545f0dca832d0df12e8601c1288c849a7194f5

>---------------------------------------------------------------

commit ce545f0dca832d0df12e8601c1288c849a7194f5
Author: Ian Lynagh <igloo at earth.li>
Date:   Wed Jan 11 15:50:02 2012 +0000

    Fix cleaning buildinfo files
    
    We were applying $(wildcard ...) to the literal string
    libraries/%/*.buildinfo, which of course had no matches.

>---------------------------------------------------------------

 ghc.mk |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ghc.mk b/ghc.mk
index db3070e..adb8242 100644
--- a/ghc.mk
+++ b/ghc.mk
@@ -1151,7 +1151,7 @@ clean_libraries: $(patsubst %,clean_libraries/%_dist-boot,$(PACKAGES_STAGE0))
 
 clean_libraries:
 	$(call removeTrees,$(patsubst %, libraries/%/dist, $(PACKAGES_STAGE1) $(PACKAGES_STAGE2)))
-	$(call removeFiles,$(patsubst %, $(wildcard libraries/%/*.buildinfo), $(PACKAGES_STAGE1) $(PACKAGES_STAGE2)))
+	$(call removeFiles,$(wildcard $(patsubst %, libraries/%/*.buildinfo, $(PACKAGES_STAGE1) $(PACKAGES_STAGE2))))
 
 # We have to define a clean target for each library manually, because the
 # libraries/*/ghc.mk files are not included when we're cleaning.





More information about the Cvs-ghc mailing list