build-system: run make clean before testing.
authorDavid Bremner <bremner@debian.org>
Sun, 17 Jul 2011 12:52:05 +0000 (09:52 -0300)
committerDavid Bremner <bremner@debian.org>
Sun, 17 Jul 2011 13:59:41 +0000 (10:59 -0300)
The reasoning is that we might have some error in the build system
that causes something not to be rebuilt; this would potentially have
the tests run on the wrong version of the code.

Makefile.local

index 41feeb3729c946cfc48899bb7065897efa7bc143..7f14e09974f52d98d3c684d7de3d55c41bd1083f 100644 (file)
@@ -87,6 +87,7 @@ dist: $(TAR_FILE)
 .PHONY: release
 release: verify-source-tree-and-version
        $(MAKE) VERSION=$(VERSION) verify-newer
+       $(MAKE) VERSION=$(VERSION) clean
        $(MAKE) VERSION=$(VERSION) test
        rm -rf ./debian-build
        git-buildpackage