File: rules

package info (click to toggle)
libnet-telnet-perl 3.02-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 148 kB
  • ctags: 136
  • sloc: perl: 2,190; makefile: 40
file content (56 lines) | stat: -rwxr-xr-x 1,288 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
#!/usr/bin/make -f
# -*- Makefile -*-

# Use debhelper V. 2
export DH_COMPAT := 2

# Make sure perl is defined (allow overriding from the command line
PERL ?= /usr/bin/perl

# Set our build directory
b := $(shell pwd)/debian/libnet-telnet-perl

binary: binary-stamp
binary-stamp: binary-indep-stamp binary-arch-stamp

binary-arch: binary-arch-stamp
binary-arch-stamp: build install

binary-indep: binary-indep-stamp
binary-indep-stamp: build install
	dh_testdir
	dh_testroot
	dh_installdocs README
	dh_installchangelogs ChangeLog
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_perl
	dh_gencontrol
	dh_md5sums
	dh_builddeb

build: build-stamp
build-stamp: config-stamp
	dh_testdir
	$(MAKE)
	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	if [ -e Makefile ]; then $(MAKE) -i distclean; fi
	dh_clean binary-stamp binary-arch-stamp binary-indep-stamp build-stamp config-stamp install-stamp

config: config-stamp
config-stamp:
	dh_testdir
	$(PERL) Makefile.PL INSTALLDIRS=perl
	touch config-stamp

install: install-stamp
install-stamp: build-stamp
	dh_testdir
	$(MAKE) pure_install INSTALLARCHLIB=$(b)/usr/lib/perl5 INSTALLMAN1DIR=$(b)/usr/share/man/man1 INSTALLMAN3DIR=$(b)/usr/share/man/man3 INSTALLPRIVLIB=$(b)/usr/lib/perl5

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