forked from concurrence/concurrence
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
51 lines (40 loc) · 1.06 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
build:
$(PYTHON) setup.py build
ext:
$(PYTHON) setup.py build_ext --inplace
egg:
$(PYTHON) setup.py bdist_egg
install:
$(PYTHON) setup.py install
sdist:
$(PYTHON) setup.py sdist
_doc:
rm -rf doc/html
cd doc/src; make html
cp -a doc/src/_build/html doc/html
doc: _doc
clean:
-find . -name *.pyc -exec rm -rf {} \;
-find . -name *.so -exec rm -rf {} \;
-find . -name *.dep -exec rm -rf {} \;
-find . -name *~ -exec rm -rf {} \;
-find . -name *.egg-info -exec rm -rf {} \;
rm -rf setuptools*.egg
rm -rf doc/src/_build
rm -rf build dist
rm -rf lib/concurrence/database/mysql/concurrence.database.mysql._mysql.c
rm -rf lib/concurrence/concurrence._event.c
rm -rf lib/concurrence/io/concurrence.io._io.c
rm -rf lib/concurrence/http/concurrence.http._http.c
rm -rf test/htmlcov
dist_clean: clean
find . -name .svn -exec rm -rf {} \;
_test:
cd test; make test
test: _test
coverage:
cd test; coverage erase
cd test; PYTHON="coverage run -a " make test
cd test; rm -rf htmlcov
cd test; coverage html -d htmlcov
firefox test/htmlcov/index.html&