comparison debian/rules @ 0:5f21a4dddc0c

Initial checkin
author KennethLavrsen
date Sun, 01 Apr 2007 05:22:43 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:5f21a4dddc0c
1 #!/usr/bin/make -f
2
3 # Uncomment to turn on verbose mode
4 #export DH_VERBOSE = 1
5
6 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
7 CFLAGS += -O0
8 else
9 CFLAGS += -O2
10 endif
11
12 # Prefix of the target package name
13 PACKAGE = vloopback-modules
14
15 # Load generic variable handling
16 -include /usr/share/modass/include/generic.make
17
18 # Load default rules, including kdist, kdist_image, ...
19 -include /usr/share/modass/include/common-rules.make
20
21 binary-modules:
22 dh_testdir
23 dh_testroot
24 dh_installdirs lib/modules/$(KVERS)/misc
25
26 # Build the module
27 $(MAKE) -C $(KSRC) M=$(PWD) modules
28
29 # Install the module
30 $(MAKE) -C $(KSRC) M=$(PWD) \
31 DEST=debian/$(PKGNAME)/lib/modules/$(KVERS)/misc modules_install
32
33 dh_installdocs README vloopback.html
34 dh_installmodules
35 dh_installchangelogs
36 dh_link
37 dh_strip
38 dh_compress
39 dh_fixperms
40 dh_installdeb
41 dh_gencontrol -- -v$(VERSION)
42 dh_md5sums
43 dh_builddeb --destdir=$(DEB_DESTDIR)
44
45 kdist_clean:
46 -$(MAKE) clean
47
48 # kdist_clean may be run before prep-deb-files
49 -dh_clean
50 rm -f debian/control
51
52 kdist_config: prep-deb-files