forked from disqus/django-mailviews
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (32 loc) · 1.01 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
STATIC_DIRECTORY = mailviews/static/mailviews
LESSC = ./node_modules/.bin/lessc
JQUERY = $(STATIC_DIRECTORY)/javascript/jquery.js
$(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)
develop: static
python setup.py develop
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 static develop lint clean test test-matrix test-server publish