From 4ade06a67abb6293c2695627b8b2b2c04298d8b6 Mon Sep 17 00:00:00 2001 From: hut Date: Mon, 3 May 2010 23:53:11 +0200 Subject: Makefile: added `make bm` to run all benchmarks BMCOUNT times --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index bef340ec..ffa81797 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,7 @@ PYTHONOPTIMIZE ?= 2 CWD = $(shell pwd) PYTHON_SITE_DEST ?= $(shell $(PYTHON) -c 'import sys; sys.stdout.write( \ [p for p in sys.path if "site" in p][0])' 2> /dev/null) +BMCOUNT ?= 5 default: test compile @echo 'Run `make options` for a list of all options' @@ -82,10 +83,12 @@ cleandoc: test: ./all_tests.py 1 - ./all_benchmarks.py 1 + +bm: + ./all_benchmarks.py $(BMCOUNT) snapshot: git archive HEAD | gzip > $(NAME)-$(VERSION)-$(shell git rev-parse HEAD | cut -b 1-8).tar.gz -.PHONY: default options all compile clean doc cleandoc test \ +.PHONY: default options all compile clean doc cleandoc test bm \ install uninstall snapshot -- cgit 1.4.1-2-gfad0