File: rules

package info (click to toggle)
libnet-perl 1%3A1.09.01-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 344 kB
  • ctags: 326
  • sloc: perl: 3,842; makefile: 58; sh: 16
file content (76 lines) | stat: -rwxr-xr-x 1,637 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
#!/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-perl

arrange: arrange-stamp
arrange-stamp: install
	dh_testdir
	dh_installdirs
	rm $(b)/usr/share/perl5/Net/libnet.cfg
	cp Net/Config.pm $(b)/etc/Net/Config.pm
	dh_link etc/Net/Config.pm usr/share/perl5/Net/Config.pm
	touch arrange-stamp

binary: binary-stamp
binary-stamp: binary-indep binary-arch
	dh_testdir
	touch binary-stamp

binary-arch: binary-arch-stamp
binary-arch-stamp: arrange
	dh_testdir
	touch binary-arch-stamp

binary-indep: binary-indep-stamp
binary-indep-stamp: arrange
	dh_testdir
	dh_testroot
	dh_installdocs README FAQ.txt
	dh_installexamples
	dh_installchangelogs ChangeLog
	dh_compress
	dh_fixperms
	dh_strip
	dh_installdeb
	dh_perl
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb
	touch binary-indep-stamp

build: build-stamp
build-stamp: config
	dh_testdir
	$(MAKE) LDLOADLIBS=-lc
	pod2text < Net/libnetFAQ.pod > FAQ.txt
#	$(MAKE) test
	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	if [ -e Makefile ]; then $(MAKE) -i distclean; fi
	dh_clean arrange-stamp binary-stamp binary-arch-stamp binary-indep-stamp build-stamp config-stamp install-stamp pfunc.h hctype.h FAQ.txt

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

install: install-stamp
install-stamp: build
	dh_testdir
	$(MAKE) install PREFIX=$(b)/usr
	touch install-stamp

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