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

« back to all changes in this revision

Viewing changes to debian/rules.modules

  • Committer: Bazaar Package Importer
  • Author(s): Ritesh Raj Sarraf
  • Date: 2011-06-13 23:05:39 UTC
  • mfrom: (8.1.2 experimental)
  • Revision ID: james.westby@ubuntu.com-20110613230539-426qhsc3k996edou
Tags: 1.1.6-2
Upload to unstable 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/make -f
2
 
 
3
 
PACKAGE := sysprof-module
4
 
MA_DIR ?= /usr/share/modass
5
 
-include $(MA_DIR)/include/generic.make
6
 
-include $(MA_DIR)/include/common-rules.make
7
 
 
8
 
BASEVERS := $(shell echo $(KVERS) | cut -d. -f-2)
9
 
 
10
 
# kernel module filename extension
11
 
ifeq ($(BASEVERS),2.6)
12
 
        modextension := .ko
13
 
else
14
 
        modextension := .o
15
 
endif
16
 
 
17
 
.PHONY: kdist_config
18
 
kdist_config: prep-deb-files
19
 
 
20
 
.PHONY: binary_modules binary-modules
21
 
binary-modules: binary_modules
22
 
binary-modules: kdist_config
23
 
        dh_testdir
24
 
        dh_testroot
25
 
        dh_clean -k
26
 
 
27
 
        # Build the module
28
 
        $(MAKE) -C $(CURDIR) KVERS=$(KVERS) KDIR=$(KSRC)
29
 
 
30
 
        # Install the module
31
 
        dh_installdirs lib/modules/$(KVERS)/kernel/lib/
32
 
        dh_install sysprof-module$(modextension) lib/modules/$(KVERS)/kernel/lib/
33
 
        dh_installmodules
34
 
 
35
 
        dh_installdocs
36
 
        dh_installchangelogs
37
 
        dh_compress
38
 
        dh_fixperms
39
 
        dh_installdeb
40
 
        dh_gencontrol -- -v$(VERSION)
41
 
        dh_md5sums
42
 
        dh_builddeb --destdir=$(DEB_DESTDIR)
43
 
        dh_clean -k
44
 
 
45
 
.PHONY: kdist_clean
46
 
kdist_clean:
47
 
        dh_testdir
48
 
        dh_testroot
49
 
        dh_clean
50
 
        $(MAKE) -C $(CURDIR) clean