File: rules

package info (click to toggle)
ldap2zone 0.1-7%2Bsqueeze1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 148 kB
  • ctags: 20
  • sloc: sh: 394; ansic: 325; makefile: 58
file content (56 lines) | stat: -rwxr-xr-x 949 bytes parent folder | download
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
#!/usr/bin/make -f

PACKAGE=ldap2zone
VERSION=$(shell dpkg-parsechangelog |grep "^Version:" | cut -f2 -d' ')

build: patch build-stamp
build-stamp:
	dh_testdir
	$(MAKE)
	touch build-stamp

clean: clean-patched unpatch
clean-patched:
	dh_testdir
	dh_testroot
	$(MAKE) clean
	rm -f build-stamp

patch: patch-stamp
patch-stamp:
	dpatch apply-all
	dpatch cat-all >patch-stamp

unpatch:
	dpatch deapply-all
	rm -rf patch-stamp debian/patched

install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs

	$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp

binary-arch: build install
	dh_testdir
	dh_testroot
	dh_install --fail-missing --sourcedir=debian/tmp
	dh_installman
	dh_installchangelogs changelog
	dh_installdocs debian/copyright
	dh_compress
	dh_fixperms
	dh_installcron
	dh_shlibdeps
	dh_strip
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary: binary-arch
binary-indep: binary-arch

.PHONY: binary binary-arch clean checkroot