File: rules

package info (click to toggle)
libwhisker2-perl 2.5-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, jessie-kfreebsd, sid, squeeze, wheezy
  • size: 1,156 kB
  • ctags: 321
  • sloc: perl: 9,119; makefile: 52
file content (54 lines) | stat: -rwxr-xr-x 982 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f
# -*- makefile -*-

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


build: build-stamp

build-stamp:
	dh_testdir

	perl Makefile.pl lib
	pod2man --section=3perl LW2.pm > debian/LW2.3perl

	touch $@

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp

	rm -f debian/LW2.3perl
	perl Makefile.pl clean

	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs

	install -m 0755 -d $(CURDIR)/debian/libwhisker2-perl/usr/share/perl5
	install -m 0644 LW2.pm $(CURDIR)/debian/libwhisker2-perl/usr/share/perl5/LW2.pm

binary-arch: build install
binary-indep: build install
	dh_testdir
	dh_testroot
	dh_installchangelogs CHANGES
	dh_installdocs -Xevil.htm KNOWNBUGS README docs/*
	dh_installexamples scripts/*
	dh_installman debian/LW2.3perl
	dh_compress -X.pl
	dh_fixperms
	dh_perl
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

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