~ubuntu-branches/ubuntu/trusty/sysprof/trusty

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Samuel Mimram
  • Date: 2006-01-11 19:08:08 UTC
  • Revision ID: james.westby@ubuntu.com-20060111190808-7tnhl2wah4adbfhx
Tags: 1.0.1-3
* Using dpatch to handle patches.
* Added x86_64.dpatch to correct and int / long mismatch.
* Installing documentation in sysprof-module-source too.
* Added an icon for menu.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
export KVERS
16
16
export KDREV
17
17
 
 
18
# We want to use dpatch
 
19
include /usr/share/dpatch/dpatch.make
 
20
 
18
21
DESTDIR = $(CURDIR)/debian/tmp
19
22
SYSPROFDIR = $(CURDIR)/debian/sysprof
20
23
 
39
42
 
40
43
config.status: configure
41
44
        dh_testdir
42
 
        CFLAGS="$(CFLAGS) -Wl,-z,defs" ./configure $(confflags) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --disable-kernel-module
 
45
#       CFLAGS="$(CFLAGS) -Wl,-z,defs"
 
46
        CFLAGS="$(CFLAGS)" ./configure $(confflags) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --disable-kernel-module
43
47
 
44
 
build: build-stamp
 
48
build: patch-stamp build-stamp
45
49
build-stamp:  config.status
46
50
        dh_testdir
47
 
        $(MAKE) sysprof
 
51
        $(MAKE) all
48
52
        touch build-stamp
49
53
 
50
 
clean:
 
54
clean: unpatch
51
55
        dh_testdir
52
56
        dh_testroot
53
57
        rm -f build-stamp
62
66
        dh_installdirs
63
67
 
64
68
        # Install sysprof.
65
 
        cp sysprof $(SYSPROFDIR)/usr/bin
66
 
        cp sysprof.glade $(SYSPROFDIR)/usr/share/sysprof
 
69
        make install DESTDIR=$(SYSPROFDIR)
 
70
        cp debian/sysprof.xpm $(SYSPROFDIR)/usr/share/pixmaps
67
71
 
68
72
        # Install the sources of the kernel module.
69
73
        install -D -m 0755 debian/rules.modules debian/tmp/modules/sysprof-module/debian/rules