~free.ekanayaka/storm/any-expr

266 by Jamu Kakar
- PYTHON environment variable can be defined on the command-line
1
PYTHON ?= python
235.2.8 by Gustavo Niemeyer
- cextensions are now disabled by default.
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
105.1.1 by James Henstridge
Add a makefile with the standard targets Launchpad expects for testing
14
235.3.1 by James Henstridge
Build the C extension when running "make".
15
all: build
16
17
build:
18
	$(PYTHON) setup.py build_ext -i
105.1.1 by James Henstridge
Add a makefile with the standard targets Launchpad expects for testing
19
235.2.9 by Gustavo Niemeyer
Oops.. James actually prefers "check" as the target name.
20
check: build
235.2.8 by Gustavo Niemeyer
- cextensions are now disabled by default.
21
	# Run the tests once with cextensions and once without them.
22
	$(TEST_COMMAND) && STORM_CEXTENSIONS=1 $(TEST_COMMAND)
105.1.1 by James Henstridge
Add a makefile with the standard targets Launchpad expects for testing
23
302.2.13 by Jamu Kakar
- Renamed branch and bumped version to 0.15.
24
release:
25
	$(PYTHON) setup.py sdist --formats bztar
26
282.1.1 by Andreas Hasenack
Added "clean" target to the Makefile
27
clean:
28
	rm -rf build
302.2.14 by Jamu Kakar
- 'make clean' removes build-stamp file and left-overs from Debian
29
	rm -rf build-stamp
302.2.13 by Jamu Kakar
- Renamed branch and bumped version to 0.15.
30
	rm -rf dist
31
	rm -rf storm.egg-info
302.2.14 by Jamu Kakar
- 'make clean' removes build-stamp file and left-overs from Debian
32
	rm -rf debian/files
33
	rm -rf debian/python-storm
34
	rm -rf debian/python-storm.*
282.1.1 by Andreas Hasenack
Added "clean" target to the Makefile
35
	find . -name "*.so" -type f -exec rm -f {} \;
36
	find . -name "*.pyc" -type f -exec rm -f {} \;
37
	find . -name "*~" -type f -exec rm -f {} \;
38
235.2.8 by Gustavo Niemeyer
- cextensions are now disabled by default.
39
.PHONY: all build test