-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (30 loc) · 1.19 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
# setting the PATH seems only to work in GNUmake not in BSDmake
PATH := ./pythonenv/bin:$(PATH)
default: dependencies check test
hudson: clean dependencies test statistics
find myplfrontend -name '*.py' | xargs /usr/local/hudorakit/bin/hd_pep8
/usr/local/hudorakit/bin/hd_pylint -f parseable myplfrontend | tee pylint.out
check:
-find myplfrontend -name '*.py' | xargs /usr/local/hudorakit/bin/hd_pep8
-/usr/local/hudorakit/bin/hd_pylint myplfrontend
test:
python manage.py test --verbosity=1 myplfrontend
dependencies:
virtualenv pythonenv
pip -q install -E pythonenv -r requirements.txt
# the following line is needed for Django applications
git clone git@github.com:hudora/html.git generic_templates
statistics:
sloccount --wide --details myplfrontend > sloccount.sc
build:
python setup.py build sdist
upload: build
rsync dist/* root@cybernetics.hudora.biz:/usr/local/www/apache22/data/nonpublic/eggs/
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