~ubuntu-branches/ubuntu/utopic/tack/utopic

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2009-08-03 01:31:12 UTC
  • Revision ID: james.westby@ubuntu.com-20090803013112-2gejdg0lglnvwv56
Tags: 1.06-8
* Replacing obsolete dh_clean -k with dh_prep.
* Updating section of the debug package.
* Using correct rfc-2822 date formats in changelog.
* Updating package to standards version 3.8.2.
* Adding misc depends.
* Prefixing debhelper files with package name.
* Using quilt rather than dpatch.
* Updating year in copyright file.
* Minimizing rules file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
 
3
 
include /usr/share/dpatch/dpatch.make
4
 
 
5
 
DEB_HOST_GNU_TYPE       ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
6
 
DEB_BUILD_GNU_TYPE      ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
7
 
 
8
 
ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
9
 
        CROSS=CC=$(DEB_HOST_GNU_TYPE)-gcc
10
 
else
11
 
        CROSS=
12
 
endif
13
 
 
14
 
clean: unpatch
15
 
        dh_testdir
16
 
        dh_testroot
17
 
        rm -f build-stamp
 
3
%:
 
4
        dh ${@} --with quilt
 
5
 
 
6
override_dh_auto_clean:
 
7
        dh_auto_clean
 
8
 
18
9
        rm -f config.guess config.sub
19
10
 
20
 
        [ ! -f Makefile ] || $(MAKE) distclean
21
 
 
22
 
        dh_clean
23
 
 
24
 
config.status: configure patch-stamp
25
 
        dh_testdir
26
 
 
27
 
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
 
11
override_dh_auto_configure:
 
12
        cp -f /usr/share/misc/config.guess config.guess
28
13
        cp -f /usr/share/misc/config.sub config.sub
29
 
endif
30
 
ifneq "$(wildcard /usr/share/misc/config.guess)" ""
31
 
        cp -f /usr/share/misc/config.guess config.guess
32
 
endif
33
 
 
34
 
        CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs,-ltic" ./configure $(CROSS) --prefix=/usr --mandir=\$${prefix}/share/man
35
 
 
36
 
build: build-stamp
37
 
build-stamp: config.status
38
 
        dh_testdir
39
 
 
40
 
        $(MAKE)
41
 
 
42
 
        touch build-stamp
43
 
 
44
 
install: build
45
 
        dh_testdir
46
 
        dh_testroot
47
 
        dh_clean -k
48
 
        dh_installdirs
49
 
 
50
 
        $(MAKE) DESTDIR=$(CURDIR)/debian/tack install
51
 
 
52
 
binary: binary-arch
53
 
 
54
 
binary-arch: build install
55
 
        dh_testdir
56
 
        dh_testroot
57
 
        dh_installchangelogs CHANGES
58
 
        dh_installdocs
 
14
 
 
15
        LDFLAGS="-Wl,-z,defs,-ltic" dh_auto_configure
 
16
 
 
17
override_dh_auto_install:
 
18
        dh_auto_install -- DESTDIR=$(CURDIR)/debian/tack
 
19
 
 
20
override_dh_strip:
59
21
        dh_strip --dbg-package=tack-dbg
60
 
        dh_compress
61
 
        dh_fixperms
62
 
        dh_installdeb
63
 
        dh_shlibdeps
64
 
        dh_gencontrol
65
 
        dh_md5sums
66
 
        dh_builddeb
67
 
 
68
 
binary-indep:
69
 
 
70
 
.PHONY: clean build install binary binary-arch binary-indep