annotate debian/rules @ 0:5f21a4dddc0c

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