From 082731f45b5bda05a7ea1b7a4a942388a91f581c Mon Sep 17 00:00:00 2001
From: david-sarah <david-sarah@jacaranda.org>
Date: Thu, 23 Jun 2011 13:55:28 -0700
Subject: [PATCH] Makefile: add 'make check' as an alias for 'make test'. Also
 remove an unnecessary dependency of 'test' on 'build' and
 'src/allmydata/_version.py'. fixes #1344

---
 Makefile | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 0917f5fd..fddd092c 100644
--- a/Makefile
+++ b/Makefile
@@ -70,7 +70,7 @@ endif
 
 # TESTING
 
-.PHONY: signal-error-deps test test-coverage quicktest quicktest-coverage
+.PHONY: signal-error-deps test check test-coverage quicktest quicktest-coverage
 .PHONY: coverage-output get-old-coverage-coverage coverage-delta-output
 
 
@@ -97,8 +97,13 @@ TEST=allmydata
 # use 'make test TRIALARGS=--reporter=bwverbose' from buildbot, to
 # suppress the ansi color sequences
 
-test: build src/allmydata/_version.py
+# It is unnecessary to have this depend on build or src/allmydata/_version.py,
+# since 'setup.py test' always updates the version and builds before testing.
+test:
 	$(PYTHON) setup.py test $(TRIALARGS) -s $(TEST)
+	touch .built
+
+check: test
 
 fuse-test: .built .checked-deps
 	$(RUNPP) -d contrib/fuse -p -c runtests.py
-- 
2.45.2