File: rules

package info (click to toggle)
libmail-verp-perl 0.06%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, lenny, squeeze, wheezy
  • size: 68 kB
  • ctags: 6
  • sloc: perl: 81; makefile: 39
file content (53 lines) | stat: -rwxr-xr-x 1,203 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
#!/usr/bin/make -f
# -*- makefile -*-

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

ifndef PERL
PERL = /usr/bin/perl
endif

build: build-stamp
build-stamp:
	dh_testdir
	# Make sure we die if we are building a non-free package - 
	# doc/draft-varshavchik-verp-smtpext.txt must be removed!
	[ ! -f doc/draft-varshavchik-verp-smtpext.txt ]
	$(PERL) Makefile.PL INSTALLDIRS=vendor
	$(MAKE) test
	touch build-stamp

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

install: build
	dh_testdir
	dh_testroot
	dh_clean -k 
	dh_installdirs
	$(MAKE) install PREFIX=$(CURDIR)/debian/libmail-verp-perl/usr
	[ ! -d $(CURDIR)/debian/libmail-verp-perl/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(CURDIR)/debian/libmail-verp-perl/usr/lib/perl5

binary-arch: build install

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

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