~ubuntu-branches/ubuntu/hoary/libapache-authcookie-perl/hoary

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Michael K. Edwards
  • Date: 2004-01-20 01:39:42 UTC
  • Revision ID: james.westby@ubuntu.com-20040120013942-4jbm6ql6jz1qsons
Tags: 3.04-1
Initial Release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
#-*- makefile -*-
 
3
# Made with the aid of dh_make, by Craig Small
 
4
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
 
5
# Some lines taken from debmake, by Christoph Lameter.
 
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
PACKAGE=$(shell dh_listpackages)
 
15
 
 
16
ifndef PERL
 
17
PERL = /usr/bin/perl
 
18
endif
 
19
 
 
20
ifndef DESTDIR
 
21
DESTDIR=..
 
22
endif
 
23
TMP     =`pwd`/debian/$(PACKAGE)
 
24
 
 
25
build: build-stamp
 
26
build-stamp:
 
27
        dh_testdir
 
28
 
 
29
        
 
30
        # Add here commands to compile the package.
 
31
        APACHE=/usr/sbin/apache $(PERL) Makefile.PL INSTALLDIRS=vendor
 
32
        $(MAKE) OPTIMIZE="-O2 -g -Wall"
 
33
 
 
34
        touch build-stamp
 
35
 
 
36
clean:
 
37
        dh_testdir
 
38
        dh_testroot
 
39
        rm -f build-stamp
 
40
 
 
41
        # Add here commands to clean up after the build process.
 
42
        -$(MAKE) realclean
 
43
 
 
44
        dh_clean
 
45
 
 
46
install: 
 
47
        dh_testdir
 
48
        dh_testroot
 
49
        dh_clean -k
 
50
        dh_installdirs
 
51
 
 
52
        # Add here commands to install the package into debian/tmp.
 
53
        #$(MAKE) install DESTDIR=`pwd`/debian/tmp
 
54
        $(MAKE) install PREFIX=$(TMP)/usr
 
55
 
 
56
 
 
57
# Build architecture-dependent files here.
 
58
binary-arch: build install
 
59
# We have nothing to do by default.
 
60
 
 
61
# Build architecture-independent files here.
 
62
binary-indep: build install
 
63
        dh_testdir
 
64
        dh_testroot
 
65
        dh_installdocs README
 
66
        dh_installexamples
 
67
        dh_installmenu
 
68
#       dh_installemacsen
 
69
#       dh_installinit
 
70
        dh_installcron
 
71
        dh_installman
 
72
        dh_installchangelogs Changes
 
73
        dh_link
 
74
        dh_strip
 
75
        dh_compress
 
76
        dh_fixperms
 
77
#       dh_makeshlibs
 
78
        dh_installdeb
 
79
        dh_perl 
 
80
        dh_shlibdeps
 
81
        dh_gencontrol
 
82
        dh_md5sums
 
83
        dh_builddeb --destdir=$(DESTDIR)
 
84
 
 
85
source diff:                                                                  
 
86
        @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
 
87
 
 
88
binary: binary-indep binary-arch
 
89
.PHONY: build clean binary-indep binary-arch binary