]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Makefile: don't re-check dependencies on each test run, and fix clean target
authorBrian Warner <warner@lothar.com>
Sat, 15 Sep 2007 22:17:55 +0000 (15:17 -0700)
committerBrian Warner <warner@lothar.com>
Sat, 15 Sep 2007 22:17:55 +0000 (15:17 -0700)
Makefile

index 311702f2693224d6888129792de78cc3261e48d0..0437f13a87d6130186f29c35fec5ee6e823f6576 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -96,7 +96,16 @@ endif
 
 # TESTING
 
-.PHONY: test test-figleaf figleaf-output
+.PHONY: check-deps test test-figleaf figleaf-output
+
+
+check-deps:
+       $(PP) \
+        $(PYTHON) -c 'import allmydata, zfec, foolscap, simplejson, nevow, OpenSSL'
+
+.checked-deps:
+       $(MAKE) check-deps
+       touch .checked-deps
 
 # you can use 'make test TEST=allmydata.test.test_introducer' to run just
 # test_introducer. TEST=allmydata.test.test_client.Basic.test_permute works
@@ -106,13 +115,11 @@ TEST=allmydata
 # use 'make test REPORTER=--reporter=bwverbose' from buildbot, to
 # suppress the ansi color sequences
 
-test: build
-       $(PP) \
-        $(PYTHON) -c 'import allmydata, zfec, foolscap, simplejson, nevow, OpenSSL'
+test: build .checked-deps
        $(PP) \
         $(TRIAL) $(REPORTER) $(TEST)
 
-test-figleaf: build
+test-figleaf: build .checked-deps
        rm -f .figleaf
        $(PP) \
         $(TRIAL) --reporter=bwverbose-figleaf $(TEST)
@@ -183,12 +190,12 @@ test-clean:
        diff allfiles.tmp.old allfiles.tmp.new
 
 clean:
-       rm -rf build _trial_temp _test_memory
+       rm -rf build _trial_temp _test_memory .checked-deps
        rm -f debian
        rm -f `find src/allmydata -name '*.so' -or -name '*.pyc'`
        rm -rf tahoe_deps.egg-info allmydata_tahoe.egg-info
-       rm -rf support
-       rm -rf setuptools*.egg ez_setup.pyc
+       rm -rf support dist
+       rm -rf setuptools*.egg *.pyc