~ubuntu-branches/ubuntu/trusty/python-babel/trusty

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2013-10-28 10:11:31 UTC
  • mfrom: (4.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20131028101131-zwbmm8sc29iemmlr
Tags: 1.3-2ubuntu1
* Merge from Debian unstable.  Remaining changes:
  - debian/rules: Run the testsuite during builds.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
test: import-cldr
 
2
        @py.test tests
 
3
 
 
4
test-env:
 
5
        @virtualenv test-env
 
6
        @test-env/bin/pip install pytest
 
7
        @test-env/bin/pip install --editable .
 
8
 
 
9
clean-test-env:
 
10
        @rm -rf test-env
 
11
 
 
12
standalone-test: import-cldr test-env
 
13
        @test-env/bin/py.test tests
 
14
 
 
15
clean: clean-cldr clean-pyc clean-test-env
 
16
 
 
17
import-cldr:
 
18
        @python scripts/download_import_cldr.py
 
19
 
 
20
clean-cldr:
 
21
        @rm babel/localedata/*.dat
 
22
        @rm babel/global.dat
 
23
 
 
24
clean-pyc:
 
25
        @find . -name '*.pyc' -exec rm {} \;
 
26
        @find . -name '__pycache__' -type d | xargs rm -rf
 
27
 
 
28
develop:
 
29
        @pip install --editable .
 
30
 
 
31
tox-test: import-cldr
 
32
        @tox
 
33
 
 
34
upload-docs:
 
35
        $(MAKE) -C docs html dirhtml latex
 
36
        $(MAKE) -C docs/_build/latex all-pdf
 
37
        cd docs/_build/; mv html babel-docs; zip -r babel-docs.zip babel-docs; mv babel-docs html
 
38
        rsync -a docs/_build/dirhtml/ pocoo.org:/var/www/babel.pocoo.org/docs/
 
39
        rsync -a docs/_build/latex/Babel.pdf pocoo.org:/var/www/babel.pocoo.org/docs/babel-docs.pdf
 
40
        rsync -a docs/_build/babel-docs.zip pocoo.org:/var/www/babel.pocoo.org/docs/babel-docs.zip
 
41
 
 
42
release: import-cldr
 
43
        python scripts/make-release.py
 
44
 
 
45
.PHONY: test develop tox-test clean-pyc clean-cldr import-cldr clean release upload-docs clean-test-env standalone-test