~ubuntu-branches/debian/wheezy/eperl/wheezy

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Denis Barbier
  • Date: 2001-12-18 20:40:24 UTC
  • Revision ID: james.westby@ubuntu.com-20011218204024-k0oaqq2eaw733v30
Tags: 2.2.14-4
* Remove emacs crap from debian/changelog
* Fix misspelling in debian/copyright

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
 
 
3
SHELL = /bin/sh
 
4
 
 
5
ifndef PERL
 
6
PERL = /usr/bin/perl
 
7
endif
 
8
 
 
9
TMP     = `pwd`/debian/`dh_listpackages`
 
10
package = eperl
 
11
 
 
12
# Uncomment this to turn on verbose mode.
 
13
#export DH_VERBOSE=1
 
14
 
 
15
# This is the debhelper compatibility version to use.
 
16
export DH_COMPAT=2
 
17
 
 
18
build: build-stamp
 
19
build-stamp:
 
20
        dh_testdir
 
21
        # File etc/shtool comes from a patch and must be set executable
 
22
        chmod a+x etc/shtool
 
23
        ./configure --prefix=/usr
 
24
        #  Remove unneded library flags
 
25
        perl -pi -e 's/ -l\S*db\S*//g' Makefile config.status config_sc.h
 
26
        $(MAKE)
 
27
 
 
28
        #$(MAKE) test
 
29
        mv Makefile Makefile.stand-alone
 
30
 
 
31
        $(PERL) Makefile.PL INSTALLDIRS=vendor
 
32
        $(MAKE) OPTIMIZE="-O2 -g -Wall" LD_RUN_PATH=
 
33
        #$(MAKE) test
 
34
        touch build-stamp
 
35
 
 
36
clean:
 
37
        dh_testdir
 
38
        dh_testroot
 
39
        rm -f build-stamp
 
40
        -$(MAKE) distclean
 
41
        rm -f Makefile.stand-alone
 
42
        dh_clean
 
43
 
 
44
install: build
 
45
        dh_testdir
 
46
        dh_testroot
 
47
        dh_clean -k
 
48
        dh_installdirs usr/lib/cgi-bin
 
49
 
 
50
        # Install eperl binary
 
51
        $(MAKE) -f Makefile.stand-alone install prefix=$(TMP)/usr
 
52
        # ... and perl modules
 
53
        $(MAKE) install PREFIX=$(TMP)/usr
 
54
        find $(TMP) -type d -empty | xargs -r rmdir -p --ignore-fail-on-non-empty
 
55
        rm -rf $(TMP)/usr/lib/eperl
 
56
 
 
57
# Build architecture-independent files here.
 
58
binary-indep: build
 
59
# There are no architecture-independent files to be uploaded
 
60
# generated by this package.  If there were any they would be
 
61
# made here.
 
62
 
 
63
# Build architecture-dependent files here.
 
64
binary-arch: build install
 
65
        dh_testdir
 
66
        dh_testroot
 
67
#       dh_installdebconf
 
68
        dh_installdocs ANNOUNCE CREDITS KNOWN.BUGS NEWS PORTING \
 
69
                README VERSIONS ChangeLog.* contrib/utils/
 
70
        dh_installexamples eg/*
 
71
        dh_installmenu
 
72
#       dh_installinit
 
73
#       dh_installcron
 
74
#       dh_installmanpages
 
75
#       dh_undocumented
 
76
        dh_installchangelogs ChangeLog
 
77
        dh_link usr/bin/eperl usr/lib/cgi-bin/nph-eperl
 
78
        dh_strip
 
79
        dh_compress
 
80
        dh_fixperms
 
81
#       dh_makeshlibs
 
82
        dh_installdeb
 
83
        dh_perl
 
84
        dh_shlibdeps
 
85
        dh_gencontrol
 
86
        dh_md5sums
 
87
        dh_builddeb
 
88
 
 
89
binary: binary-indep binary-arch
 
90
.PHONY: build clean binary-indep binary-arch binary install