Makefile: Add a "make test" target.

I just wasted far too much time looking for a bug that wasn't actually
there only because I hadn't recompiled before running the test
suite. Now we can take advantage of actual dependency information to
force a rebuild for "make test".
This commit is contained in:
Carl Worth 2010-04-15 14:56:21 -07:00
parent c48dcc302c
commit e96f7ca585

View file

@ -45,6 +45,10 @@ ifeq ($(shell cat .first-build-message),)
endif endif
endif endif
.PHONY: test
test: all
@./test/notmuch-test
$(TAR_FILE): $(TAR_FILE):
git archive --format=tar --prefix=$(PACKAGE)-$(VERSION)/ HEAD > $(TAR_FILE).tmp git archive --format=tar --prefix=$(PACKAGE)-$(VERSION)/ HEAD > $(TAR_FILE).tmp
echo $(VERSION) > version echo $(VERSION) > version