File: rules

package info (click to toggle)
libauthen-simple-dbi-perl 0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, lenny, squeeze, wheezy
  • size: 84 kB
  • ctags: 9
  • sloc: perl: 110; makefile: 41; sql: 12
file content (51 lines) | stat: -rwxr-xr-x 967 bytes parent folder | download | duplicates (5)
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
#!/usr/bin/make -f

PACKAGE=$(shell dh_listpackages)
TMP = $(CURDIR)/debian/$(PACKAGE)

ifndef PERL
PERL = /usr/bin/perl
endif

build: build-stamp
build-stamp:
	dh_testdir
	$(PERL) Makefile.PL INSTALLDIRS=vendor
	$(MAKE)
	touch $@

install: install-stamp
install-stamp: build-stamp
	dh_testdir
	dh_testroot
	TEST_POD=1 $(MAKE) test
	$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
	[ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/lib/perl5
	touch $@

clean:
	dh_testdir
	dh_testroot
	[ ! -f Makefile ] || $(MAKE) realclean
	dh_clean build-stamp install-stamp 

binary-arch: build install

binary: binary-indep binary-arch

binary-indep: build install
	dh_testdir
	dh_testroot
	dh_installdocs
	dh_installchangelogs Changes
	dh_compress
	dh_fixperms
	dh_strip
	dh_installdeb
	dh_perl
	dh_gencontrol
	dh_md5sums
	dh_builddeb

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