~ubuntu-branches/ubuntu/saucy/bc/saucy-proposed

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): John Hasler
  • Date: 2006-10-07 10:45:18 UTC
  • mfrom: (3.1.3 dapper)
  • Revision ID: james.westby@ubuntu.com-20061007104518-b2895ls9fridypeg
Tags: 1.06-20
* Had already fixed menu titles but failed to close the bug.
  Closes: #320605: Conformance with menu policy

* Also had fixed typos.
  Closes: #301921: 'man bc' typos: "environent", "specifing"

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
#                                                       -*- makefile -*-
3
3
# debian/rules file for the Debian/GNU bc package
4
 
# Copyright 1999 - 2002 by Dirk Eddelbuettel <edd@debian.org>
 
4
# Copyright 1999 - 2004 by Dirk Eddelbuettel <edd@debian.org>
5
5
 
6
6
package1 = bc
7
7
package2 = dc
8
 
debtmp  := $(CURDIR)/debian/tmp
 
8
deb_bc  := $(CURDIR)/debian/$(package1)
9
9
deb_dc  := $(CURDIR)/debian/$(package2)
10
10
 
 
11
DEB_BUILD_GNU_TYPE = $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 
12
DEB_HOST_GNU_TYPE = $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 
13
ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
 
14
CONFARGS = --host=$(DEB_HOST_GNU_TYPE)
 
15
endif
 
16
 
11
17
#export DH_VERBOSE=1
12
18
 
 
19
 
13
20
build: build-stamp
14
21
build-stamp:
15
22
        dh_testdir
16
 
        ./configure --prefix=/usr --with-readline
 
23
        ./configure --prefix=/usr --with-readline $(CONFARGS)
17
24
        $(MAKE) CFLAGS="-O2 -g -Wall -D_POSIX_SOURCE -DDOT_IS_LAST"
18
25
        (cd doc; texi2html -monolithic -expandinfo -number $(package2).texi)
19
26
        touch build-stamp
33
40
        dh_installdirs
34
41
        # Add here commands to install the package into debian/tmp.
35
42
        #$(MAKE) prefix=`pwd`/debian/tmp/usr install
36
 
        dh_movefiles
 
43
#       dh_movefiles
37
44
        touch install-stamp
38
45
 
39
46
binary-indep: build install
45
52
        dh_clean -k
46
53
        dh_installdirs                          usr/bin
47
54
        dh_testroot -pbc
48
 
        install -p -s -m 0755 bc/bc             $(debtmp)/usr/bin/.
 
55
        install -p -s -m 0755 bc/bc             $(deb_bc)/usr/bin/.
49
56
        dh_installdocs -pbc                     NEWS README AUTHORS
50
57
        dh_installexamples -pbc                 Examples/*
51
58
        dh_installmenu -pbc