File: rules

package info (click to toggle)
libtangram-perl 2.10-1.1
  • links: PTS
  • area: main
  • in suites: lenny, squeeze, wheezy
  • size: 1,064 kB
  • ctags: 703
  • sloc: perl: 9,665; makefile: 35
file content (45 lines) | stat: -rwxr-xr-x 909 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
#! /usr/bin/make -f
# -*-makefile-*-
# debian/rules file for libtangram-perl

PERL	?= /usr/bin/perl

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

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

binary-indep:	checkroot build
	dh_clean
	dh_installdirs

	$(MAKE) pure_install DESTDIR=$(CURDIR)/debian/libtangram-perl
	[ ! -d debian/libtangram-perl/usr/lib/perl5 ] || rmdir -p --ignore-fail-on-non-empty debian/libtangram-perl/usr/lib/perl5
	dh_installdocs README
	#dh_installexamples tour 
	dh_installchangelogs Changes.pod

	dh_compress
	dh_fixperms
	dh_perl
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary-arch:	checkroot build

binary:	binary-indep binary-arch

checkroot:
	dh_testdir
	dh_testroot

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