~niemeyer/storm/postgres-local-paths

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
PYTHON = python$(PYTHON_VERSION)
PYTHON_VERSION = 2.4
TESTDB = storm_test

all:
	@:

check:
	@echo "* Creating $(TESTDB)"
	@if psql -l | grep -q " $(TESTDB) "; then \
	    dropdb $(TESTDB) >/dev/null; \
	fi
	createdb $(TESTDB)
	STORM_POSTGRES_URI=postgres:$(TESTDB) $(PYTHON) test --verbose

.PHONY: all check