Don't try to run ghc-config when cleaning
authorSimon Marlow <marlowsd@gmail.com>
Mon, 16 Jan 2012 13:16:33 +0000 (13:16 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Tue, 1 May 2012 08:05:13 +0000 (09:05 +0100)
testsuite/mk/boilerplate.mk

index ad79498..707c037 100644 (file)
@@ -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
 
 # -----------------------------------------------------------------------------