summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--mk/custom-settings.mk2
-rw-r--r--validate6
3 files changed, 7 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index d2cd6b8853..7adec86ad1 100644
--- a/Makefile
+++ b/Makefile
@@ -595,7 +595,7 @@ DIST_CLEAN_FILES += config.cache config.status mk/config.h mk/stamp-h \
docs/users_guide/ug-book.xml extra-gcc-opts
# don't clean config.mk: it's needed when cleaning stuff later on
-LATE_DIST_CLEAN_FILES += mk/config.mk
+LATE_DIST_CLEAN_FILES += mk/config.mk mk/are-validating.mk
# VERSION is shipped in a source dist
MAINTAINER_CLEAN_FILES += VERSION
diff --git a/mk/custom-settings.mk b/mk/custom-settings.mk
index db8ebb4451..1a01873d31 100644
--- a/mk/custom-settings.mk
+++ b/mk/custom-settings.mk
@@ -1,4 +1,6 @@
+-include $(TOP)/mk/are-validating.mk
+
ifeq "$(Validating)" "YES"
include $(TOP)/mk/validate-settings.mk
-include $(TOP)/mk/validate.mk
diff --git a/validate b/validate
index 31900a1654..d6f1c15b35 100644
--- a/validate
+++ b/validate
@@ -73,7 +73,9 @@ fi
thisdir=`utils/pwd/pwd forwardslash`
-make Validating=YES -j$threads ValidateHpc=$hpc ValidateSlow=$slow
+echo "Validating=YES" > mk/are-validating.mk
+
+make -j$threads ValidateHpc=$hpc ValidateSlow=$slow
fi # testsuite-only
if [ "$hpc" = YES ]
@@ -86,7 +88,7 @@ then
rm -f $HPCTIXFILE
fi
-make Validating=YES -C testsuite/tests/ghc-regress fast stage=2 CLEANUP=1 THREADS=$threads 2>&1 | tee testlog
+make -C testsuite/tests/ghc-regress fast stage=2 CLEANUP=1 THREADS=$threads 2>&1 | tee testlog
if [ "$hpc" = YES ]
then