~ubuntu-branches/ubuntu/utopic/splatd/utopic

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Nick Barkas
  • Date: 2007-01-25 16:16:12 UTC
  • Revision ID: james.westby@ubuntu.com-20070125161612-7wh1logl650iskm8
Tags: 1.1-0ubuntu1
Initial release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# Based on the sample rules file generated by dh_make.
 
3
 
 
4
PYVERS=$(shell pyversions -vr)
 
5
 
 
6
build: $(PYVERS:%=build-python%)
 
7
        touch $@
 
8
 
 
9
build-python%:
 
10
        dh_testdir
 
11
        # Build the python modules.
 
12
        python$* setup.py build
 
13
        touch $@
 
14
 
 
15
clean:
 
16
        dh_testdir
 
17
        dh_testroot
 
18
        rm -f build-stamp
 
19
 
 
20
        # Clean up after the build process.
 
21
        python$* setup.py clean
 
22
        rm -rf build
 
23
        rm -f splat/__init__.pyc
 
24
 
 
25
        dh_clean 
 
26
        debconf-updatepo
 
27
 
 
28
install: build $(PYVERS:%=install-python%)
 
29
 
 
30
install-python%:
 
31
        dh_testdir
 
32
        dh_testroot
 
33
        dh_clean -k 
 
34
        dh_installdirs
 
35
 
 
36
        # Install the package into debian/splatd.
 
37
        python$* setup.py install --root=$(CURDIR)/debian/splatd --install-scripts=/usr/sbin
 
38
 
 
39
        # Install configuration file template for postinst script
 
40
        install -m 0644 debian/splat.conf.in debian/splatd/usr/share/splatd/splat.conf.in
 
41
 
 
42
# Build architecture-dependent files here.
 
43
binary-arch: build install
 
44
# We have nothing to do by default.
 
45
 
 
46
# Build architecture-independent files here.
 
47
binary-indep: build install
 
48
        dh_testdir
 
49
        dh_testroot
 
50
        dh_installchangelogs 
 
51
        # Install splat manual
 
52
        cp -a docs/xhtml/* debian/splatd/usr/share/doc/splatd/html/
 
53
        dh_installdocs
 
54
        dh_installexamples splat.conf
 
55
        dh_installman
 
56
        dh_installdebconf
 
57
        dh_pycentral
 
58
        dh_installinit
 
59
        dh_compress -X.py
 
60
        dh_fixperms
 
61
        dh_installdeb
 
62
        dh_gencontrol
 
63
        dh_md5sums
 
64
        dh_builddeb
 
65
 
 
66
binary: binary-indep binary-arch
 
67
.PHONY: build clean binary-indep binary-arch binary install