~ubuntu-branches/ubuntu/raring/gnarwl/raring-proposed

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Francesco Zanolin
  • Date: 2010-03-20 06:33:26 UTC
  • mfrom: (1.1.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 6.
  • Revision ID: james.westby@ubuntu.com-20100320063326-x17by7dedvhx4clm
Tags: 3.6.dfsg-1
* New upstream release. ( Closes: #555109, #334873, #495957, #437046 )
* Repackaged to remove non-dfsg schema files (ISPev.schema, ISPev2.schema).
  ( Closes: #457279 )
* New maintainer upload.  
* Updated Spanish Debconf po ( Closes: #549665 )

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
 
# Made with the aid of debmake, by Christoph Lameter,
3
 
# based on the sample debian/rules file for GNU hello by Ian Jackson.
 
2
# -*- makefile -*-
 
3
# Sample debian/rules that uses debhelper.
 
4
# This file was originally written by Joey Hess and Craig Small.
 
5
# As a special exception, when this file is copied by dh-make into a
 
6
# dh-make output file, you may use that output file without restriction.
 
7
# This special exception was added by Craig Small in version 0.37 of dh-make.
 
8
 
 
9
# Uncomment this to turn on verbose mode.
 
10
#export DH_VERBOSE=1
 
11
 
 
12
include /usr/share/quilt/quilt.make
4
13
 
5
14
package=gnarwl
6
15
 
7
 
build: build-stamp
 
16
build: $(QUILT_STAMPFN) build-stamp
8
17
build-stamp:
9
18
        dh_testdir
10
 
        ./configure --prefix=/usr \
11
 
                    --with-docdir=/usr/share/doc/gnarwl \
12
 
                    --with-homedir=/var/lib/gnarwl \
13
 
                    --sysconfdir=/etc \
14
 
                    --mandir=/usr/share/man \
15
 
                    --with-mta=/usr/sbin/sendmail
16
 
 
 
19
        ./configure --prefix=$(CURDIR)/debian/$(package)/usr \
 
20
                    --mandir=$(CURDIR)/debian/$(package)/usr/share/man \
 
21
                    --sysconfdir=$(CURDIR)/debian/$(package)/etc \
 
22
                    --with-docdir=$(CURDIR)/debian/$(package)/usr/share/doc/gnarwl \
 
23
                    --with-homedir=$(CURDIR)/debian/$(package)/var/lib/gnarwl \
 
24
                    --with-mta=/usr/sbin/sendmail
17
25
        $(MAKE) CFLAGS="-O2 -g -Wall -I.."
18
26
        touch build-stamp
19
27
 
20
 
clean:
 
28
clean: unpatch
21
29
        dh_testdir
22
30
        dh_testroot
23
31
        rm -f build-stamp install-stamp
24
 
 
25
32
        [ ! -f Makefile ] || $(MAKE) distclean
26
33
        rm -f `find . -name "*~"`
27
34
        rm -rf debian/files* core
28
 
 
29
35
        debconf-updatepo
30
 
 
31
36
        dh_clean
32
37
 
33
 
 
34
38
install: install-stamp
35
39
install-stamp: build-stamp
36
40
        dh_testdir
37
41
        dh_testroot
38
 
        dh_clean -k
 
42
        dh_prep
39
43
        dh_installdirs
40
 
 
41
 
        # Add here commands to install the package
42
 
        $(MAKE) install prefix=`pwd`/debian/$(package)/usr DESTDIR=`pwd`/debian/$(package)
43
 
        rm `pwd`/debian/$(package)/usr/share/doc/gnarwl/INSTALL || true
44
 
 
 
44
        $(MAKE) install prefix=$(CURDIR)/debian/$(package)/usr DESTDIR=$(CURDIR)/debian/$(package)
 
45
        rm $(CURDIR)/debian/$(package)/usr/share/doc/gnarwl/INSTALL || true
 
46
        rm -fr $(CURDIR)/debian/$(package)/etc/ldap || true
 
47
        rm -fr $(CURDIR)/debian/$(package)/var/lib/gnarwl/bin || true
 
48
        rm -fr $(CURDIR)/debian/$(package)/usr/share/doc/gnarwl/LICENSE || true
45
49
        touch install-stamp
46
50
 
47
51
binary-indep: build install
49
53
binary-arch: build install
50
54
        dh_testdir
51
55
        dh_testroot
52
 
 
53
56
        dh_installdocs
54
57
        dh_installchangelogs
55
58
        dh_installdebconf
 
59
        dh_installman
56
60
        dh_compress
57
61
        dh_strip
58
62
        dh_fixperms