summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHerbert Valerio Riedel <hvr@gnu.org>2013-10-25 15:00:06 +0200
committerHerbert Valerio Riedel <hvr@gnu.org>2013-10-25 15:01:10 +0200
commit115eb4a8dba371dd155795910dc52c0e33389599 (patch)
treeacc999e973b769eef1d1a5325a34d3a8f923f546
parent9026c77a07533bda3773c3c3f3df1c6592bc80c7 (diff)
downloadhaskell-115eb4a8dba371dd155795910dc52c0e33389599.tar.gz
Clean `.buildinfo` only if `.buildinfo.in` exists
Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
-rw-r--r--ghc.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/ghc.mk b/ghc.mk
index 891aaf61d7..dd91a82222 100644
--- a/ghc.mk
+++ b/ghc.mk
@@ -1220,7 +1220,7 @@ clean_libraries: $(patsubst %,clean_libraries/%_dist-boot,$(PACKAGES_STAGE0))
clean_libraries:
$(call removeTrees,$(patsubst %, libraries/%/dist, $(PACKAGES_STAGE1) $(PACKAGES_STAGE2)))
- $(call removeFiles,$(wildcard $(patsubst %, libraries/%/*.buildinfo, $(PACKAGES_STAGE1) $(PACKAGES_STAGE2))))
+ $(call removeFiles,$(wildcard $(patsubst %.in, %, $(wildcard $(patsubst %, libraries/%/*.buildinfo.in, $(PACKAGES_STAGE1) $(PACKAGES_STAGE2))))))
$(call removeFiles,$(patsubst %, libraries/%/config.log, $(PACKAGES_STAGE1) $(PACKAGES_STAGE2)))
$(call removeFiles,$(patsubst %, libraries/%/config.status, $(PACKAGES_STAGE1) $(PACKAGES_STAGE2)))
$(call removeFiles,$(wildcard $(patsubst %, libraries/%/include/Hs*Config.h, $(PACKAGES_STAGE1) $(PACKAGES_STAGE2))))