File: rules

package info (click to toggle)
ddclient 3.8.3-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 1,360 kB
  • sloc: perl: 16,297; sh: 643; xml: 55; makefile: 48
file content (72 lines) | stat: -rwxr-xr-x 1,439 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
67
68
69
70
71
72
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.

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

# set installation directory
DESTDIR=$(shell pwd)/debian/ddclient

build-arch: build
build-indep: build
build: build-stamp
build-stamp:
	dh_testdir
	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	debconf-updatepo
	rm -f build-stamp

	# Add here commands to clean up after the build process.
	# Nothing is created or destroyed except the debian stuff

	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_prep -k
	dh_installdirs

	install -m 755 ddclient \
	  $(DESTDIR)/usr/sbin/ddclient
	install -m 755 debian/ddclient.dhclient-exit-hook \
	  $(DESTDIR)/etc/dhcp/dhclient-exit-hooks.d/ddclient

%.8 : %.xml
	xmlto -o $(@D) man $<

# Build architecture-independent files here.
binary-indep: build install debian/ddclient.8
#	dh_testversion
	dh_testdir
	dh_testroot
	dh_installdebconf	
	dh_installdocs
	dh_installexamples
	dh_installman
	dh_installppp
	dh_installmenu
	dh_installinit
	dh_installchangelogs 
	dh_link
	dh_strip
	dh_compress
	dh_fixperms
	dh_installdeb
	perl -w debian/dh_installscripts-common
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

# Build architecture-dependent files here.
binary-arch: build install
# We have nothing to do by default.

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