-
Notifications
You must be signed in to change notification settings - Fork 41
/
Makefile
56 lines (41 loc) · 1.03 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
STATIC_DIRECTORY = mailviews/static/mailviews
LESSC = ./node_modules/.bin/lessc
JQUERY = $(STATIC_DIRECTORY)/javascript/jquery.js
develop: static
pip install -e .
$(LESSC):
npm install .
bootstrap: $(LESSC)
git submodule update --init
$(LESSC) vendor/bootstrap/less/bootstrap.less > $(STATIC_DIRECTORY)/css/bootstrap.css
cp vendor/bootstrap/js/bootstrap-*.js $(STATIC_DIRECTORY)/javascript
cp vendor/bootstrap/img/* $(STATIC_DIRECTORY)/img
$(JQUERY):
curl http://code.jquery.com/jquery-1.8.3.js > $(JQUERY)
static: bootstrap $(JQUERY)
lint:
pip install --use-mirrors flake8
flake8 ./mailviews
clean:
find . -name *.pyc -delete
test: clean
python setup.py test
test-matrix: clean
which tox >/dev/null || pip install --use-mirrors tox
tox
test-server: develop
python mailviews/tests/manage.py runserver
publish: static
git tag $$(python setup.py --version)
git push && git push --tags
python setup.py sdist upload
.PHONY:
bootstrap \
clean \
develop \
lint \
publish \
static \
test \
test-matrix \
test-server