~ubuntu-branches/ubuntu/utopic/python-networkx/utopic

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Sandro Tosi
  • Date: 2012-08-11 12:41:30 UTC
  • mfrom: (1.4.1) (5.1.13 sid)
  • Revision ID: package-import@ubuntu.com-20120811124130-whr6uso7fncyg8bi
Tags: 1.7-1
* New upstream release
* debian/patches/changeset_*
  - removed, included upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
PYLIBPATH := $(shell python -c "from distutils.command.build import build ; from distutils.core import Distribution ; b = build(Distribution()) ; b.finalize_options() ; print b.build_platlib")
5
5
 
6
6
%:
7
 
        dh $@
 
7
        dh $@ --with sphinxdoc
8
8
 
9
9
override_dh_auto_clean:
10
10
        dh_auto_clean
11
11
 
12
12
        # Add here commands to clean up after the build process.
13
13
        rm -fr build
 
14
        # Remove built doc too
 
15
        $(MAKE) -C doc clean
 
16
        rm -rf doc/source/*.pdf doc/source/*.zip examples/*/*.png doc/fontList.cache
14
17
 
15
18
        # Make sure that there's no .pyc left
16
19
        find . -name '*.pyc' -exec rm {} ';'
29
32
        done
30
33
 
31
34
build-indep:
32
 
        # build doc
33
 
        make -C doc dist PYTHONPATH=../$(PYLIBPATH)
 
35
        # build doc, run in a separate shell, so we can export MPLCONFIGDIR
 
36
        (export MPLCONFIGDIR=. ; make -C doc dist PYTHONPATH=../$(PYLIBPATH))
34
37
 
35
38
override_dh_install:
36
39
        # Install w/o compiling *.pyc files
70
73
 
71
74
override_dh_compress:
72
75
        dh_compress -Xexamples/ -X.js -X.pdf -Xobjects.inv
 
76
 
 
77
override_dh_installchangelogs:
 
78
        dh_installchangelogs doc/source/reference/news.rst