forked from python-dirbtuves/akl.lt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
66 lines (47 loc) · 1.67 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
all: bin/django var/db.sqlite3
bin/django: var/assets/jquery/bower.json bin/buildout buildout.cfg versions.cfg setup.py
bin/buildout
touch -c $@
var/db.sqlite3:
bin/django migrate
bin/flake8: bin/buildout
bin/pylint: bin/buildout
bin/buildout: bin/python
bin/python bootstrap.py --version=2.2.1
bin/python: parts/virtualenv-1.11.6
parts/virtualenv-1.11.6/virtualenv.py --python=python2.7 --setuptools --no-site-packages .
var/assets/jquery/bower.json: bin/node bower.json
if [ -n "$$NODE_VIRTUAL_ENV" -a "$$NODE_VIRTUAL_ENV" = "$$PWD" ] ; then \
bower install --config.interactive=false ; \
else \
. bin/activate && bower install --config.interactive=false ; \
fi
touch -c $@
bin/node: bin/nodeenv
bin/nodeenv --node=0.11.13 --prebuilt -p --requirements=node-requirements.txt
touch -c $@
bin/nodeenv: bin/python requirements.txt
bin/pip install -r requirements.txt
parts/virtualenv-1.11.6:
mkdir -p parts
wget https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.11.6.tar.gz -O- | tar -xzf- -C parts
clean:
rm -rf akl.lt.egg-info bin develop-eggs include .installed.cfg lib \
local parts share $(wildcard src/node-v0.*.*-*-*/) \
var eggs
find src -type f -iname '*.egg-info' -delete
find src -type f -iname '*.py[co]' -delete
cleanpyc:
find src -type f -iname '*.py[co]' -delete
run: bin/django
bin/django runserver 0.0.0.0:8000
test: django-tests flake8 pylint cleanpyc
django-tests: bin/django
bin/django test akllt
flake8: bin/flake8
bin/flake8 --exclude=migrations src/akllt || true
pylint: bin/pylint
bin/pylint src/akllt || true
tags: bin/django
bin/ctags -v --tag-relative
.PHONY: all clean cleanpyc run tags pylint django-tests