-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (24 loc) · 695 Bytes
/
Makefile
File metadata and controls
30 lines (24 loc) · 695 Bytes
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
ENV_BIN = ${HOME}/bin
HOME = ${shell pwd}
PYTHON = ${HOME}/bin/python
PROJECT = ${HOME}/src
buildenv:
virtualenv --no-site-packages ${HOME}
bin/pip install -E ./ -r ./requirements.txt
clean:
-rm -rf bin
-rm -rf lib
-rm -rf include
-rm -rf man
-rm -rf *~*
-rm -rf *#*
-find . -name '*.pyc' -exec rm {} \;
rm -f ${PROJECT}/test_bio
test: clean buildenv syncdb pep8
DJANGO_SETTINGS_MODULE=settings PYTHONPATH=.:src ${PYTHON} ${ENV_BIN}/nosetests
syncdb:
${PYTHON} ${HOME}/src/manage.py syncdb --noinput
run:
${PYTHON} ${PROJECT}/manage.py runserver 0.0.0.0:8088
pep8:
${ENV_BIN}/pep8 --filename=*.py --ignore=W --exclude="manage.py,settings.py" --statistics --repeat ${PROJECT}