~lifeless/storm/bug-620615

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Gustavo Niemeyer
  • Date: 2008-06-18 23:13:04 UTC
  • mto: (235.2.21 need-for-speed-revenge)
  • mto: This revision was merged to the branch mainline in revision 245.
  • Revision ID: gustavo@niemeyer.net-20080618231304-iww2kewacv2ux78v
Simplify the calling semantics of _when in the expr module, as
suggested by James.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
PYTHON = python$(PYTHON_VERSION)
2
 
PYTHON_VERSION = 2.4
3
 
TESTDB = storm_test
 
1
PYTHON = python
 
2
 
 
3
TEST_COMMAND = $(PYTHON) test
 
4
 
 
5
STORM_POSTGRES_URI = postgres:storm_test
 
6
STORM_POSTGRES_HOST_URI = postgres://localhost/storm_test
 
7
STORM_MYSQL_URI = mysql:storm_test
 
8
STORM_MYSQL_HOST_URI = mysql://localhost/storm_test
 
9
 
 
10
export STORM_POSTGRES_URI
 
11
export STORM_POSTGRES_HOST_URI
 
12
export STORM_MYSQL_URI
 
13
export STORM_MYSQL_HOST_URI
4
14
 
5
15
all: build
6
16
 
7
17
build:
8
18
        $(PYTHON) setup.py build_ext -i
9
19
 
10
 
check:
11
 
        @echo "* Creating $(TESTDB)"
12
 
        @if psql -l | grep -q " $(TESTDB) "; then \
13
 
            dropdb $(TESTDB) >/dev/null; \
14
 
        fi
15
 
        createdb $(TESTDB)
16
 
        STORM_POSTGRES_URI=postgres:$(TESTDB) $(PYTHON) test --verbose
 
20
check: build
 
21
        # Run the tests once with cextensions and once without them.
 
22
        $(TEST_COMMAND) && STORM_CEXTENSIONS=1 $(TEST_COMMAND)
17
23
 
18
 
.PHONY: all build check
 
24
.PHONY: all build test