~cjwatson/launchpad-buildd/snap-default-branch

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Martin Pool
  • Date: 2011-11-11 05:20:10 UTC
  • Revision ID: mbp@canonical.com-20111111052010-sjbcta3ex9xk9c4a
Tags: launchpad-buildd-92
Use debhelper for more of the package build.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
#
3
 
# Copyright 2009, 2010, 2010 Canonical Ltd.  
 
3
# Copyright 2009, 2010, 2011 Canonical Ltd.  
4
4
5
5
# This software is licensed under the GNU Affero General Public License version
6
6
# 3 (see the file LICENSE).
15
15
 
16
16
target = debian/launchpad-buildd
17
17
topdir = .
18
 
python_target = debian/python-lpbuildd
19
 
 
20
 
buildd = $(topdir)/lpbuildd
21
 
 
22
 
targetshare = $(target)/usr/share/launchpad-buildd
23
 
pytarget = $(targetshare)/lpbuildd
24
 
python_lib_dir = $(python_target)/usr/lib/launchpad-buildd
25
 
 
26
 
pyfiles = debian.py slave.py binarypackage.py utils.py __init__.py \
27
 
    sourcepackagerecipe.py translationtemplates.py
 
18
 
28
19
slavebins = unpack-chroot mount-chroot update-debian-chroot sbuild-package \
29
20
    scan-for-processes umount-chroot remove-build override-sources-list \
30
21
    buildrecipe generate-translation-templates
40
31
        dh_installdirs 
41
32
        dh_installexamples
42
33
 
43
 
        install -m644 buildd-slave.tac $(python_lib_dir)/buildd-slave.tac
44
 
 
45
 
        cp -r lpbuildd $(python_lib_dir)
46
 
 
47
 
        for slavebin in $(slavebins); do \
48
 
          install -m755 ./$$slavebin $(targetshare)/slavebin/$$slavebin; \
49
 
        done
50
 
        install -m755 ./sbuild $(target)/usr/bin/sbuild
51
 
        install -m644 template-buildd-slave.conf $(targetshare)/template-buildd-slave.conf
 
34
        export DH_OPTIONS=-plaunchpad-buildd
 
35
        dh_install $(slavebins) usr/share/launchpad-buildd/slavebin
 
36
        dh_install template-buildd-slave.conf \
 
37
                sbuildrc \
 
38
                debian/upgrade-config \
 
39
                usr/share/launchpad-buildd
52
40
        install -m755 buildd-config.py $(target)/usr/bin/buildd-genconfig
53
 
        install -m644 sbuildrc $(targetshare)/sbuildrc
54
 
        install -m644 sbuild.conf $(target)/etc/sbuild.conf
55
 
        install -m755 debian/upgrade-config $(targetshare)/upgrade-config
56
41
        install -m755 lpbuildd/check_implicit_pointer_functions.py \
57
42
                $(target)/usr/bin/check-implicit-pointer-functions
58
 
        # Okay, that's installed all the slave-related files
59
 
 
60
 
 
61
 
binary-indep: install
 
43
 
 
44
binary-indep: install 
62
45
        dh_installdocs
63
46
        dh_installchangelogs
64
47
        dh_installinit