forked from mdornseif/django-rewards
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (24 loc) · 754 Bytes
/
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
# setting the PATH seems only to work in GNUmake not in BSDmake
PATH := ./pythonenv/bin:$(PATH)
default: dependencies check test
check:
-find rewards -name '*.py' | xargs pep8
-pylint rewards
test:
python manage.py test --verbosity=1 rewards
dependencies:
virtualenv pythonenv
pip -q install -E pythonenv -r requirements.txt
./pythonenv/bin/python manage.py syncdb
build:
python setup.py build sdist
upload: build
sudo python setup.py sdist upload
install: build
sudo python setup.py install
runserver: dependencies
python manage.py runserver
clean:
rm -Rf pythonenv build dist html test.db sloccount.sc pylint.out
find . -name '*.pyc' -or -name '*.pyo' -delete
.PHONY: test build clean install upload check statistics dependencies