~ubuntu-branches/ubuntu/raring/libhtml-widgets-selectlayers-perl/raring

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Ivan Kohler
  • Date: 2002-03-12 07:14:45 UTC
  • Revision ID: james.westby@ubuntu.com-20020312071445-x5ui86dqtm4smmdz
Tags: 0.01-1
Initial Release (closes: Bug#138010).

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