Add ARM files
[dh-make-perl] / dev / arm / libmodule-build-perl / libmodule-build-perl-0.2808.01 / debian / rules
1 #!/usr/bin/make -f
2 # Sample debian/rules that uses debhelper.  GNU copyright 1997 to 1999 by Joey
3 # Hess.
4
5 # Uncomment this to turn on verbose mode.
6 #export DH_VERBOSE=1
7
8 include /usr/share/quilt/quilt.make
9
10 PACKAGE=$(shell dh_listpackages)
11 TMP=$(CURDIR)/debian/$(PACKAGE)
12 SHAREDIR=$(TMP)/usr/share/$(PACKAGE)
13 PERL?=/usr/bin/perl
14
15 build: build-stamp
16 build-stamp: $(QUILT_STAMPFN)
17         dh_testdir
18         $(PERL) Build.PL installdirs=vendor script_files=
19         $(PERL) ./Build
20         HOME= $(PERL) ./Build test
21         touch $@
22
23 clean: unpatch
24         dh_testdir
25         dh_testroot
26
27         dh_clean build-stamp install-stamp
28         [ ! -f Build ] || $(PERL) ./Build realclean
29
30 install: install-stamp
31 install-stamp: build-stamp
32         dh_testdir
33         dh_testroot
34         dh_clean -k
35
36         $(PERL) ./Build install destdir=$(TMP) create_packlist=0
37
38         # scripts/config_data is installed in /usr/share/libmodule-build-perl
39         # for historical reasons (?)
40         install -d $(SHAREDIR)
41         install -m755 scripts/* $(SHAREDIR)
42
43         [ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/lib/perl5
44         touch $@
45
46 binary-arch:
47         # nothing to do
48
49 binary-indep: install
50         dh_testdir
51         dh_testroot
52         dh_installdocs
53         dh_installchangelogs Changes
54         dh_compress
55         dh_fixperms
56         dh_installdeb
57         dh_perl
58         dh_gencontrol
59         dh_md5sums
60         dh_builddeb
61
62 binary: binary-indep binary-arch
63 .PHONY: build clean binary-indep binary-arch binary install