~ubuntu-branches/ubuntu/lucid/bootchart/lucid

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Scott James Remnant
  • Date: 2009-02-05 16:25:53 UTC
  • Revision ID: james.westby@ubuntu.com-20090205162553-m68eaavabrwozyku
Tags: 0.9-0ubuntu8keybuk3
Don't output uptime into the log unless we can read from the source
file, otherwise we'll go out of sync

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
# debian/rules for the bootchart package.
3
 
# Copyright © 2005 Canonical Ltd.
 
3
# Copyright © 2008 Canonical Ltd.
4
4
# Author: Scott James Remnant <scott@ubuntu.com>
5
5
 
6
6
# Uncomment this to turn on verbose mode.
15
15
 
16
16
        ant jar
17
17
 
 
18
        gcc -g -Wall -Os -o bootchart-collector bootchart-collector.c
 
19
 
18
20
        touch $@
19
21
 
20
22
# Install files into the deb
21
 
install: DH_OPTIONS=-i
 
23
install:
22
24
install: build
23
25
        dh_testdir
24
26
        dh_testroot
25
27
        dh_clean -k 
26
28
        dh_installdirs
27
29
 
28
 
        install -m 644 -o root -g root bootchart.jar \
29
 
                debian/bootchart/usr/share/bootchart
30
 
 
31
 
        install -m 755 -o root -g root debian/bootchart.init \
 
30
        install -D -m 644 -o root -g root bootchart.jar \
 
31
                debian/bootchart/usr/share/bootchart/bootchart.jar
 
32
 
 
33
        install -D -m 755 -o root -g root bootchart-collector \
 
34
                debian/bootchart/lib/bootchart/collector
 
35
        install -D -m 755 -o root -g root bootchart-gather.sh \
 
36
                debian/bootchart/lib/bootchart/gather
 
37
 
 
38
        install -D -m 755 -o root -g root debian/bootchart.init \
 
39
                debian/bootchart/etc/init.d/bootchart
 
40
        install -D -m 755 -o root -g root debian/bootchart.stop.init \
32
41
                debian/bootchart/etc/init.d/stop-bootchart
33
 
        install -m 755 -o root -g root debian/bootchart.script \
 
42
        install -D -m 755 -o root -g root debian/bootchart.initramfs-hook \
 
43
                debian/bootchart/usr/share/initramfs-tools/hooks/bootchart
 
44
        install -D -m 755 -o root -g root debian/bootchart.initramfs-script \
34
45
                debian/bootchart/usr/share/initramfs-tools/scripts/init-top/bootchart
35
 
        install -m 755 -o root -g root debian/bootchart-udeb.casper-post \
36
 
                debian/bootchart-udeb/usr/lib/casper/post.d/93bootchart-save
37
 
        install -m 755 -o root -g root debian/bootchart-udeb.d-i-startup \
38
 
                debian/bootchart-udeb/lib/debian-installer-startup.d/S03bootchart
39
46
 
40
47
 
41
48
binary: binary-indep binary-arch
42
49
 
43
50
# Build architecture-independent files here.
44
51
binary-indep: DH_OPTIONS=-i
45
 
binary-indep: build install
 
52
# We have nothing to do by default.
 
53
 
 
54
# Build architecture-dependent files here.
 
55
binary-arch: DH_OPTIONS=-a
 
56
binary-arch: build install
46
57
        dh_testdir
47
58
        dh_testroot
48
59
        dh_installchangelogs ChangeLog
56
67
        dh_md5sums
57
68
        dh_builddeb
58
69
 
59
 
# Build architecture-dependent files here.
60
 
binary-arch: 
61
 
# We have nothing to do by default.
62
 
 
63
70
 
64
71
# Clean up the mess we made
65
72
clean: clean-source unpatch
68
75
        rm -f build-stamp
69
76
 
70
77
        -ant clean
 
78
        -rm -f bootchart-collector
71
79
 
72
80
        dh_clean 
73
81