don't include config.mk if we're cleaning
authorSimon Marlow <marlowsd@gmail.com>
Tue, 23 Jun 2009 10:03:35 +0000 (10:03 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Tue, 23 Jun 2009 10:03:35 +0000 (10:03 +0000)
gmp/ghc.mk

index 9bd52c2..3549a26 100644 (file)
@@ -12,7 +12,9 @@
 
 ifneq "$(phase)" "0"
 
+ifeq "$(findstring clean,$(MAKECMDGOALS))" ""
 include libraries/integer-gmp/gmp/config.mk
+endif
 
 libraries/integer-gmp/cbits/mkGmpDerivedConstants$(exeext): libraries/integer-gmp/cbits/mkGmpDerivedConstants.c
        "$(CC)" $(SRC_CC_OPTS) $(libraries/integer-gmp_CC_OPTS) $< -o $@