File: rules

package info (click to toggle)
simba 0.8.4-6
  • links: PTS
  • area: main
  • in suites: bullseye, buster
  • size: 576 kB
  • sloc: perl: 2,645; sh: 163; makefile: 51
file content (81 lines) | stat: -rwxr-xr-x 1,575 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
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
#!/usr/bin/make -f

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

PACKAGE=$(shell dh_listpackages)

PERL = /usr/bin/perl

DESTDIR=..

TMP     =`pwd`/debian/simba

configure: configure-stamp
configure-stamp:
	dh_testdir

	$(PERL) -I. Makefile.PL --skipdeps verbose INSTALLDIRS=vendor

	touch configure-stamp

build: build-arch build-indep
build-arch: build-stamp
build-indep: build-stamp
build-stamp: configure-stamp
	dh_testdir

	$(MAKE)

	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp configure-stamp

	[ ! -f Makefile ] || $(MAKE) distclean

	dh_clean

install:
	dh_testdir
	dh_testroot
	dh_prep
	dh_installdirs

	$(MAKE) install DESTDIR=$(TMP)

	# Remove any empty directories

	find $(TMP) -type d -empty -print0 | xargs --no-run-if-empty --null rmdir -p --ignore-fail-on-non-empty
	mkdir -p $(TMP)/usr/share/dbconfig-common/data/simba/install
	cp addons/simba.mysql $(TMP)/usr/share/dbconfig-common/data/simba/install/mysql

	mkdir $(TMP)/usr/share/man/man8
	pod2man simba.pod $(TMP)/usr/share/man/man8/simba.8 -s 8


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

# Build architecture-dependent files here.
binary-indep: build install
	dh_testdir
	dh_testroot
	dh_installdebconf
	dh_installdocs
	dh_install
	dh_installman
	dh_installchangelogs Changelog
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_perl
	dh_gencontrol
	dh_md5sums
	dh_builddeb --destdir=$(DESTDIR)

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