File: rules

package info (click to toggle)
jailtool 1.1-5
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch, wheezy
  • size: 148 kB
  • ctags: 14
  • sloc: perl: 243; makefile: 33
file content (41 lines) | stat: -rwxr-xr-x 810 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
#!/usr/bin/make -f
#export DH_VERBOSE=1

INSTALLB :=     install -o0 -g0 -m 0755
TARGET :=	debian/jailtool

clean:
	dh_testdir
	dh_testroot
	dh_clean
	[ ! -f jailtool.1 ] || rm -f jailtool.1
build:
install:
	dh_testdir
	dh_testroot
	dh_clean
	dh_installdirs

	/usr/bin/docbook-to-man debian/jailtool.sgml > jailtool.1
	$(INSTALLB) update-jail $(TARGET)/usr/sbin/update-jail

binary-arch: binary-indep

binary-indep: install
	dh_testdir
	dh_testroot
	dh_installdocs
	dh_installchangelogs CHANGELOG
	dh_installexamples examples/*
	dh_installman jailtool.1
	dh_link usr/share/man/man1/jailtool.1.gz usr/share/man/man1/update-jail.1.gz
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_perl
	dh_gencontrol
	dh_md5sums
	dh_builddeb

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