forked from opps/opps-multimedias
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (42 loc) · 1.25 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
.PHONY: test
test: pep8
python runtests.py
.PHONY: travis
travis:
pip install -r requirements_test.txt --use-mirrors
export OPPS_TRAVIS=True
python setup.py develop
.PHONY: pep8
pep8:
@flake8 . --ignore=E501,F403,E126,E127,E128,E303 --exclude=migrations
.PHONY: sdist
sdist: test
@python setup.py sdist upload
.PHONY: clean
clean:
@find ./ -name '*.pyc' -exec rm -f {} \;
@find ./ -name 'Thumbs.db' -exec rm -f {} \;
@find ./ -name '*~' -exec rm -f {} \;
.PHONY: install
install:
pip install -r requirements.txt --use-mirrors
python setup.py develop
.PHONY: makemessages
makemessages:
echo "making messages";\
cd opps/multimedias;\
django-admin.py makemessages -l en_US;\
cd ../../;\
.PHONY: compilemessages
compilemessages:
echo "compiling messages";\
cd opps/multimedias;\
django-admin.py compilemessages;\
cd ../../;\
.PHONY: tx
tx:
mkdir -p opps/multimedias/locale/en_US/LC_MESSAGES
touch opps/multimedias/locale/en_US/LC_MESSAGES/django.po
tx set --auto-remote https://www.transifex.com/projects/p/opps/resource/multimedias/
tx set --auto-local -r opps-multimedias.multimedias "opps/multimedias/locale/<lang>/LC_MESSAGES/django.po" --source-language=en_US --source-file "opps/multimedias/locale/en_US/LC_MESSAGES/django.po" --execute
tx pull -f