~ubuntu-branches/ubuntu/edgy/nail/edgy

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Hilko Bengen
  • Date: 2004-04-01 12:58:06 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040401125806-ob0836aos7lf3kep
Tags: 10.7-1
* New upstream version (includes portions of IEEE Std 1003.1 docs)
* Updated Standards-Version

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
# This is the debhelper compatability version to use.
9
9
export DH_COMPAT=2
10
10
 
11
 
CFLAGS="-Wall -O2"
 
11
CFLAGS=-Wall -g
12
12
 
13
 
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
14
 
  CFLAGS +=" -g"
 
13
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 
14
  CFLAGS+=-O0
 
15
else
 
16
  CFLAGS+=-O2
15
17
endif
16
18
ifneq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
17
 
  STRIPARGS =" --no-act"
 
19
  STRIPARGS= --no-act
18
20
endif
19
21
 
20
22
configure: configure-stamp
21
23
configure-stamp:
22
24
        dh_testdir
23
25
 
24
 
        automake
25
 
        autoconf
 
26
        echo $$DH_COMPAT > debian/compat
26
27
 
27
28
        ./configure --prefix=/usr/ --mandir=/usr/share/man/ \
28
29
        --sysconfdir=/etc/ --libdir=/usr/lib/nail/ \
29
30
        --with-mailspool=/var/mail/ \
30
 
        --with-vi=/usr/bin/editor --with-more=/usr/bin/pager \
 
31
        --with-vi=/usr/bin/sensible-editor --with-more=/usr/bin/sensible-pager \
 
32
        --with-openssl \
31
33
        --host=$(DEB_HOST_GNU_TYPE) --target=$(DEB_BUILD_GNU_TYPE)
32
34
 
33
35
        touch configure-stamp
36
38
build-stamp: debian/copyright
37
39
        dh_testdir
38
40
 
39
 
        $(MAKE) CFLAGS=$(CFLAGS)
 
41
        $(MAKE) CFLAGS="$(CFLAGS)"
40
42
 
41
43
        touch build-stamp
42
44
 
52
54
        rm -f build-stamp configure-stamp
53
55
 
54
56
        -$(MAKE) distclean
55
 
        
 
57
 
56
58
        rm -f debian/copyright
57
59
 
58
60
        dh_clean