File: rules

package info (click to toggle)
nfs-utils 1%3A1.0.10-6%2Betch.1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 4,232 kB
  • ctags: 2,554
  • sloc: ansic: 24,691; sh: 9,398; makefile: 667
file content (66 lines) | stat: -rwxr-xr-x 1,606 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.

DEB_BUILD_GNU_TYPE	:= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
DEB_HOST_GNU_TYPE	:= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_HOST_ARCH		:= $(shell dpkg-architecture -qDEB_HOST_ARCH)
DEB_HOST_ARCH_OS	:= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)

# Temporary root
DEBTMP	:= $(shell pwd)/debian/tmp

build: build-stamp
build-stamp:
	dh_testdir
ifeq ($(DEB_HOST_ARCH),ia64)
	patch -p1 < debian/bzero.patch
endif
	CFLAGS="-g -O2 -Wall" ./configure \
		--mandir='$${prefix}/share/man' \
		--enable-secure-statd \
		--with-tcp-wrappers
	$(MAKE)
	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp
	rm -rf $(DEBTMP)
	-$(MAKE) distclean
	dh_clean

binary-indep: build
binary-arch: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs
	mkdir $(DEBTMP)
	$(MAKE) DESTDIR='$(DEBTMP)' install
	dh_install
	
	# Fix up the manpages
	for f in lockd statd showmount; do \
	  perl -pi -e "s#/usr(/sbin/(rpc\\.)?$$f)#\$$1#g" \
	    debian/tmp/usr/share/man/man8/$$f.8; \
	done;
	
	dh_installdocs -A
	dh_installdocs -pnfs-common debian/README.Debian.nfsv4
	install -m 0755 debian/nfs-common.init debian/nfs-common/etc/init.d/nfs-common
	install -m 0755 debian/nfs-kernel-server.init debian/nfs-kernel-server/etc/init.d/nfs-kernel-server
	dh_installman
	dh_link
	dh_installchangelogs ChangeLog
	dh_strip
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary