summaryrefslogtreecommitdiff
path: root/testsuite/mk/boilerplate.mk
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2012-01-16 13:16:33 +0000
committerSimon Marlow <marlowsd@gmail.com>2012-05-01 09:05:13 +0100
commitcf85b75a8631c6ee9d8c4802b4b476ea56ddda8d (patch)
tree795dc42854cdebbaad874232386db49c5cd33fa6 /testsuite/mk/boilerplate.mk
parent3e467a9611619df716d9e4df5ba4fe143d1ca145 (diff)
downloadhaskell-cf85b75a8631c6ee9d8c4802b4b476ea56ddda8d.tar.gz
Don't try to run ghc-config when cleaning
Diffstat (limited to 'testsuite/mk/boilerplate.mk')
-rw-r--r--testsuite/mk/boilerplate.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/testsuite/mk/boilerplate.mk b/testsuite/mk/boilerplate.mk
index ad794985f5..707c037a87 100644
--- a/testsuite/mk/boilerplate.mk
+++ b/testsuite/mk/boilerplate.mk
@@ -149,7 +149,9 @@ $(ghc-config-mk) : $(TOP)/mk/ghc-config
$(TOP)/mk/ghc-config "$(TEST_HC)" >"$@"; if [ $$? != 0 ]; then $(RM) "$@"; exit 1; fi
# If the ghc-config fails, remove $@, and fail
+ifeq "$(findstring clean,$(MAKECMDGOALS))" ""
include $(ghc-config-mk)
+endif
# -----------------------------------------------------------------------------