summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorVictor Nawothnig <Victor.Nawothnig@gmail.de>2018-10-28 12:39:05 -0400
committerBen Gamari <ben@smart-cactus.org>2018-10-28 13:40:43 -0400
commit42575701b5e71ec5c5e5418a4530e40e6487684c (patch)
treeeede93992de415e3012538feb6d4f615d27d3372 /Makefile
parente400b9babdcf11669f963aeec20078fe7ccfca0d (diff)
downloadhaskell-42575701b5e71ec5c5e5418a4530e40e6487684c.tar.gz
Improve diagnostic when using `make fast` in top directory
Reviewers: bgamari Reviewed By: bgamari Subscribers: rwbarton, carter Differential Revision: https://phabricator.haskell.org/D5113
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 8046e36e14..73dc7ed8be 100644
--- a/Makefile
+++ b/Makefile
@@ -103,6 +103,7 @@ REALGOALS=$(filter-out \
fulltest \
slowtest \
fasttest \
+ fast \
,$(MAKECMDGOALS))
# configure touches certain files even if they haven't changed. This
@@ -225,3 +226,8 @@ test:
.PHONY: slowtest fulltest
slowtest fulltest:
$(MAKE) -C testsuite/tests CLEANUP=1 SUMMARY_FILE=../../testsuite_summary.txt slow
+
+.PHONY: fast
+fast:
+ @echo "You can use 'make fast' only from inside a sub-component directory."
+ @exit 1