Add the original source packages to maemo, source lenny
[dh-make-perl] / dev / i386 / libdevel-symdump-perl / libdevel-symdump-perl-2.08 / debian / rules
1 #!/usr/bin/make -f
2 # Made with the aid of dh_make, by Craig Small
3 # Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
4 # Some lines taken from debmake, by Cristoph Lameter.
5
6 # Uncomment this to turn on verbose mode.
7 #export DH_VERBOSE=1
8
9 ifndef PERL
10 PERL = /usr/bin/perl
11 endif
12
13 TMP     =$(CURDIR)/debian/libdevel-symdump-perl
14 config  =INSTALLDIRS=vendor
15
16 ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
17 CFLAGS := -O2 -g -Wall
18 else
19 CFLAGS := -g -Wall
20 endif
21
22 build: build-stamp
23 build-stamp:
24         dh_testdir
25         $(PERL) Makefile.PL $(config)
26         $(MAKE) OPTIMIZE="$(CFLAGS)"
27         touch $@
28
29 clean:
30         dh_testdir
31         dh_testroot
32         [ ! -f Makefile ] || $(MAKE) distclean
33         rm -f Makefile.old
34         dh_clean build-stamp install-stamp
35
36 install: install-stamp
37 install-stamp: build-stamp
38         dh_testdir
39         dh_testroot
40         dh_clean -k
41         dh_installdirs
42
43         $(MAKE) install PREFIX=$(TMP)/usr
44         [ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents $(TMP)/usr/lib/perl5
45
46         touch $@
47
48 # Build architecture-independent files here.
49 binary-indep: build install
50         dh_testdir
51         dh_testroot
52         dh_installdocs
53         dh_installchangelogs ChangeLog
54         dh_strip
55         dh_compress
56         dh_fixperms
57         dh_perl
58         dh_installdeb
59         dh_shlibdeps
60         dh_gencontrol
61         dh_md5sums
62         dh_builddeb
63
64 # Build architecture-dependent files here.
65 binary-arch: build install
66 # We have nothing to do by default.
67
68 binary: binary-indep binary-arch
69 .PHONY: build clean install binary-indep binary-arch binary