File: redhat-cluster-source.rules

package info (click to toggle)
redhat-cluster 3.0.12-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 10,620 kB
  • ctags: 14,431
  • sloc: ansic: 150,556; sh: 10,974; perl: 4,383; python: 3,022; makefile: 2,253; xml: 61
file content (37 lines) | stat: -rw-r--r-- 1,085 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
# export DH_VERBOSE=1

# module assistant stuff
PACKAGE=redhat-cluster-modules
MA_DIR ?= /usr/share/modass
-include $(MA_DIR)/include/generic.make
-include $(MA_DIR)/include/common-rules.make

kdist_clean: prep-deb-files
	dh_clean
	$(MAKE) -C $(KSRC) M=$(CURDIR) clean USING_KBUILD=1

kdist_config: prep-deb-files
binary-modules: kdist_config
	dh_testdir
	dh_testroot
	dh_clean -k
	# build the module
	make -C $(KSRC) M=$(CURDIR)/ modules USING_KBUILD=1
	mkdir -p $(CURDIR)/debian/$(PKGNAME)/lib/modules/$(KVERS)/kernel/extra/
	install -m644 -b gfs/gfs.ko $(CURDIR)/debian/$(PKGNAME)/lib/modules/$(KVERS)/kernel/extra/gfs.ko 
	# this is broken, dunno why:
	#     #make -C $(KSRC) M=$(CURDIR)/ modules_install INSTALL_MOD_PATH=$(CURDIR)/debian/$(PKGNAME) INSTALL_MOD_DIR=extra/
	dh_installdocs
	dh_installchangelogs
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_installmodules
	dh_gencontrol -- -v$(VERSION)
	dh_md5sums
	dh_builddeb --destdir=$(DEB_DESTDIR)

.PHONY: binary-modules kdist kdist_config kdist_image kdist_clean