1 |
#!/usr/bin/make -f |
2 |
# This file is public domain software, originally written by Joey Hess. |
3 |
|
4 |
# Uncomment this to turn on verbose mode. |
5 |
#export DH_VERBOSE=1 |
6 |
|
7 |
build: |
8 |
perl Makefile.PL |
9 |
|
10 |
clean: |
11 |
dh_testdir |
12 |
dh_testroot |
13 |
dh_clean |
14 |
[ ! -f Makefile ] || $(MAKE) clean |
15 |
|
16 |
install: build |
17 |
dh_testdir |
18 |
dh_testroot |
19 |
dh_clean -k |
20 |
dh_installdirs usr/local/sbin |
21 |
$(MAKE) install DESTDIR=debian/vz-tools |
22 |
for i in debian/vz-tools/usr/local/share/perl/5.8.8/VZ/*; do \ |
23 |
bn=$$(basename $$i); \ |
24 |
ln -s ../share/perl/5.8.8/VZ/$$bn debian/vz-tools/usr/local/sbin/$$bn; \ |
25 |
done |
26 |
|
27 |
binary-indep: build install |
28 |
dh_testdir |
29 |
dh_testroot |
30 |
dh_install |
31 |
dh_installchangelogs |
32 |
dh_installdocs |
33 |
dh_link |
34 |
dh_compress |
35 |
dh_fixperms |
36 |
dh_installdeb |
37 |
dh_gencontrol |
38 |
dh_md5sums |
39 |
dh_builddeb |
40 |
|
41 |
binary-arch: build install |
42 |
|
43 |
binary: binary-indep binary-arch |
44 |
.PHONY: build clean binary-indep binary-arch binary install |