File: rules

package info (click to toggle)
xntp3 5.93-2
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 7,644 kB
  • ctags: 7,419
  • sloc: ansic: 59,474; perl: 3,633; sh: 2,623; awk: 417; makefile: 311; asm: 37
file content (85 lines) | stat: -rwxr-xr-x 2,211 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
73
74
75
76
77
78
79
80
81
82
83
84
85
#!/usr/bin/make -f
#	debian/rules for xntp3 using debhelper

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

build:	build-stamp
build-stamp:
	@dh_testdir || \
    echo "NOTE:  The 'debhelper' package must be installed to build xntp3!"
	./configure --prefix=/usr
	make
	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp
	dh_clean
	make distclean || exit 0
	rm -f ntpdate/version.c ntpq/version.c

# Build architecture-independent files here.
binary-indep: build
	dh_testdir -i 
	dh_testroot -i
	dh_installdirs -i
	cp -r html debian/xntp3-doc/usr/doc/xntp3
	find debian/xntp3-doc/usr/doc/xntp3 -name \*~ -exec rm {} \;
	ln -s ../xntp3/html debian/xntp3-doc/usr/doc/xntp3-doc/html
	dh_installdocs -i
	dh_compress -i
	dh_fixperms -i
	dh_installdeb -i
	dh_shlibdeps -i
	dh_gencontrol -i
	dh_md5sums -i
	dh_builddeb -i

# Build architecture-dependent files here.
binary-arch: build
	dh_testdir -a
	dh_testroot -a
	dh_installdirs -a
	make install bindir=../debian/tmp/usr/sbin prefix=../debian/tmp/usr
	install -g root -m 644 -o root debian/manpage \
		debian/tmp/usr/man/man8/xntpd.8
	gzip -9 debian/tmp/usr/man/man8/xntpd.8
	ln debian/tmp/usr/man/man8/xntpd.8.gz \
		debian/tmp/usr/man/man8/ntpdate.8.gz
	ln debian/tmp/usr/man/man8/xntpd.8.gz \
		debian/tmp/usr/man/man8/ntpq.8.gz
	ln debian/tmp/usr/man/man8/xntpd.8.gz \
		debian/tmp/usr/man/man8/ntptime.8.gz
	ln debian/tmp/usr/man/man8/xntpd.8.gz \
		debian/tmp/usr/man/man8/ntptrace.8.gz
	ln debian/tmp/usr/man/man8/xntpd.8.gz \
		debian/tmp/usr/man/man8/tickadj.8.gz
	ln debian/tmp/usr/man/man8/xntpd.8.gz \
		debian/tmp/usr/man/man8/xntpdc.8.gz
	dh_installdocs -a
	dh_installexamples -a
	dh_installmenu -a
	dh_installinit -a
	dh_installcron -a
	dh_installmanpages -a
#	dh_undocumented
	dh_installchangelogs -a
	dh_strip -a
	dh_compress -a
	dh_fixperms -a
	dh_suidregister -a
	dh_installdeb -a
	dh_shlibdeps -a
	dh_gencontrol -a
#	dh_makeshlibs -a
#	dh_du -a
	dh_md5sums -a
	dh_builddeb -a

source diff:                                                                  
	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false

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