~ubuntu-branches/ubuntu/wily/slides/wily-proposed

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Riley Baird
  • Date: 2015-05-13 12:41:53 UTC
  • mfrom: (8.2.1 sid)
  • Revision ID: package-import@ubuntu.com-20150513124153-0xrdsfwjqx57eyws
Tags: 1.0.1-15
Moved to unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
 
 
3
 
-include /usr/share/python/python.mk
4
 
 
5
 
versions := $(shell pyversions -vs)
6
 
 
7
 
build: build-stamp
8
 
build-stamp:
9
 
        touch build-stamp
10
 
 
11
 
clean:
12
 
        dh_testdir
13
 
        dh_testroot
14
 
        rm -f build-stamp install-*
15
 
        rm -rf build
16
 
        find . -name "*.pyc" |xargs -r rm
17
 
        dh_clean
18
 
 
19
 
install: build $(patsubst %,install-%,$(versions))
20
 
install-%: build-stamp
21
 
        dh_testdir
22
 
        dh_testroot
23
 
        dh_installdirs
24
 
 
25
 
        python$* setup.py install --no-compile \
26
 
                --prefix=$(CURDIR)/debian/python-slides/usr ${py_setup_install_args}
27
 
 
28
 
        touch install-$*
29
 
 
30
 
# Build architecture-independent files here.
31
 
binary-indep: build install
32
 
        dh_testdir
33
 
        dh_testroot
34
 
        dh_installchangelogs
35
 
        dh_installdocs
 
2
export PYBUILD_NAME=slides
 
3
 
 
4
%:
 
5
        dh $@ --with python2 --buildsystem=pybuild
 
6
 
 
7
override_dh_installexamples:
36
8
        dh_installexamples -Nslides-doc
37
9
        dh_installexamples -pslides-doc examples/* sample.css
38
 
        PYTHONPATH=`pwd` sh -c "cd debian/slides-doc/usr/share/doc/slides-doc/examples/intro; ./make-presentation"
39
 
        dh_compress
40
 
        dh_fixperms
41
 
        dh_python2
42
 
        dh_installdeb
43
 
        dh_gencontrol
44
 
        dh_md5sums
45
 
        dh_builddeb
46
 
 
47
 
# Build architecture-dependent files here.
48
 
binary-arch: build install
49
 
# We have nothing to do by default.
50
 
 
51
 
binary: binary-indep binary-arch
52
 
.PHONY: build clean binary-indep binary-arch binary install configure
 
10
        PYTHONPATH=`pwd` sh -c "cd debian/slides-doc/usr/share/doc/slides-doc/examples/intro; ./make-presentation"
 
 
b'\\ No newline at end of file'