]> git.notmuchmail.org Git - notmuch/blobdiff - Makefile.local
Makefile: Make "make release" run the test suite.
[notmuch] / Makefile.local
index 4a8142f03e6c9810a5d23d046ef5cbac90c74406..3f8f1d56c81add165cd5844cf0ed471f635bcf58 100644 (file)
@@ -45,6 +45,10 @@ ifeq ($(shell cat .first-build-message),)
 endif
 endif
 
+.PHONY: test
+test: all
+       @./test/notmuch-test
+
 $(TAR_FILE):
        git archive --format=tar --prefix=$(PACKAGE)-$(VERSION)/ HEAD > $(TAR_FILE).tmp
        echo $(VERSION) > version
@@ -66,7 +70,9 @@ dist: $(TAR_FILE)
 # We invoke make recursively only to force ordering of our phony
 # targets in the case of parallel invocation of make (-j).
 .PHONY: release
-release: release-verify-newer
+release:
+       $(MAKE) test
+       $(MAKE) release-verify-newer
        $(MAKE) release-upload
        @echo "Please send a release announcement as follows:"
        @echo ""