rewrite home page redirect
[dh-make-perl] / dev / arm / dh-make-perl / dh-make-perl-0.47 / debian / dh-make-perl / usr / share / dh-make-perl / rules.Module-Build.xs
1 #!/usr/bin/make -f
2 # This debian/rules file is provided as a template for normal perl
3 # packages. It was created by Marc Brockschmidt <marc@dch-faq.de> for
4 # the Debian Perl Group (http://pkg-perl.alioth.debian.org/) but may
5 # be used freely wherever it is useful.
6
7 # Uncomment this to turn on verbose mode.
8 #export DH_VERBOSE=1
9
10 # If set to a true value then MakeMaker's prompt function will
11 # always return the default without waiting for user input.
12 export PERL_MM_USE_DEFAULT=1
13
14 PERL   ?= /usr/bin/perl
15 PACKAGE = $(shell dh_listpackages)
16 TMP     = $(CURDIR)/debian/$(PACKAGE)
17
18 # Allow disabling build optimisation by setting noopt in
19 # $DEB_BUILD_OPTIONS
20 CFLAGS = -Wall -g
21 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
22         CFLAGS += -O0
23 else
24         CFLAGS += -O2
25 endif
26
27 build: build-stamp
28 build-stamp:
29         dh_testdir
30         # Add commands to compile the package here
31         $(PERL) Build.PL installdirs=vendor config=optimize="$(CFLAGS)"
32         OPTIMIZE="$(CFLAGS)" $(PERL) Build
33         #TEST#
34         touch $@
35
36 clean:
37         dh_testdir
38         dh_testroot
39         dh_clean build-stamp install-stamp
40         # Add commands to clean up after the build process here
41         [ ! -f Build ] || $(PERL) Build --allow_mb_mismatch 1 distclean
42
43 install: install-stamp
44 install-stamp: build-stamp
45         dh_testdir
46         dh_testroot
47         dh_clean -k
48         # Add commands to install the package into $(TMP) here
49         $(PERL) Build install destdir=$(TMP) create_packlist=0
50         touch $@
51
52 # Build architecture-independent files here.
53 binary-indep: build install
54 # We have nothing to do here for an architecture-dependent package
55
56 # Build architecture-dependent files here.
57 binary-arch: build install
58         dh_testdir
59         dh_testroot
60         dh_installdocs #DOCS#
61         dh_installexamples #EXAMPLES#
62         dh_installchangelogs #CHANGES#
63         dh_shlibdeps
64         dh_strip
65         dh_perl
66         dh_compress
67         dh_fixperms
68         dh_installdeb
69         dh_gencontrol
70         dh_md5sums
71         dh_builddeb
72
73 binary: binary-indep binary-arch
74 .PHONY: build clean binary-indep binary-arch binary install