~ubuntu-server/ubuntu/lucid/irqbalance/0.55

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Chuck Short
  • Date: 2009-11-26 15:40:38 UTC
  • Revision ID: zulcss@ubuntu.com-20091126154038-l6qk8s7xfwlserm7
Inital irqbalance import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
 
 
3
# Uncomment this to turn on verbose mode.
 
4
export DH_VERBOSE=1
 
5
 
 
6
include /usr/share/quilt/quilt.make
 
7
 
 
8
configure: configure-stamp
 
9
configure-stamp:
 
10
        dh_testdir
 
11
        # Add here commands to configure the package.
 
12
        touch configure-stamp
 
13
 
 
14
build: patch build-stamp
 
15
 
 
16
build-stamp: configure-stamp  
 
17
        dh_testdir
 
18
        # Add here commands to compile the package.
 
19
        $(MAKE) CFLAGS="-g -Os -D_FORTIFY_SOURCE=2 -Wall -W `pkg-config --cflags glib-2.0`"
 
20
        touch $@
 
21
 
 
22
clean: unpatch
 
23
        dh_testdir
 
24
        dh_testroot
 
25
        rm -f build-stamp configure-stamp
 
26
        # Add here commands to clean up after the build process.
 
27
        $(MAKE) clean
 
28
        dh_clean 
 
29
 
 
30
install: build
 
31
        dh_testdir
 
32
        dh_testroot
 
33
        dh_prep  
 
34
        dh_installdirs
 
35
        # Add here commands to install the package into debian/irqbalance.
 
36
        cp -p debian/irqbalance.init debian/irqbalance/etc/init.d/irqbalance
 
37
        mv irqbalance debian/irqbalance/usr/sbin
 
38
 
 
39
# Build architecture-independent files here.
 
40
binary-indep: install
 
41
# We have nothing to do by default.
 
42
 
 
43
# Build architecture-dependent files here.
 
44
binary-arch: install
 
45
        dh_testdir
 
46
        dh_testroot
 
47
        dh_installchangelogs 
 
48
        dh_installdebconf
 
49
        dh_installinit
 
50
        dh_installdocs
 
51
        dh_installman
 
52
        dh_strip
 
53
        dh_compress
 
54
        dh_fixperms
 
55
        dh_installdeb
 
56
        dh_shlibdeps
 
57
        dh_gencontrol
 
58
        dh_md5sums
 
59
        dh_builddeb
 
60
 
 
61
binary: binary-indep binary-arch
 
62
.PHONY: build clean binary-indep binary-arch binary install configure