~ubuntu-branches/ubuntu/precise/pth/precise

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): NIIBE Yutaka
  • Date: 2010-05-12 19:57:47 UTC
  • Revision ID: james.westby@ubuntu.com-20100512195747-gq6410hsgj3wqpco
Tags: 2.0.7-16
debian/patches/03-hurd-pth_mctx.patch: New file.
Added workaround for GNU/Hurd to fix FTBFS (Closes: #466115).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
 
 
3
 
include /usr/share/quilt/quilt.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
18
 
        rm -f config.guess config.sub
19
 
 
20
 
        [ ! -f Makefile ] || $(MAKE) distclean
21
 
 
22
 
        dh_clean
23
 
 
24
 
config.status: configure patch
25
 
        dh_testdir
26
 
 
27
 
ifneq "$(wildcard /usr/share/misc/config.guess)" ""
28
 
        cp -f /usr/share/misc/config.guess config.guess
29
 
endif
30
 
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
31
 
        cp -f /usr/share/misc/config.sub config.sub
32
 
endif
33
 
 
34
 
        ./configure $(CROSS) --prefix=/usr --mandir=\$${prefix}/share/man CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
35
 
 
36
 
build: build-stamp
37
 
build-stamp: config.status
38
 
        dh_testdir
39
 
 
40
 
        $(MAKE)
41
 
        $(MAKE) test
42
 
 
43
 
        touch build-stamp
44
 
 
45
 
install: build
46
 
        dh_testdir
47
 
        dh_testroot
48
 
        dh_prep
49
 
 
50
 
        $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
51
 
 
52
 
binary: binary-arch
53
 
 
54
 
binary-arch: install
55
 
        dh_testdir
56
 
        dh_testroot
57
 
        dh_installchangelogs ChangeLog
58
 
        dh_installdocs
59
 
        dh_install --fail-missing --sourcedir=debian/tmp
60
 
        dh_lintian
 
2
# -*- makefile-gmake -*-
 
3
 
 
4
# Uncomment this to turn on verbose mode.
 
5
#export DH_VERBOSE=1
 
6
 
 
7
%:
 
8
        dh --with quilt $@
 
9
 
 
10
override_dh_auto_clean:
 
11
        dh_auto_clean
 
12
        rm -f config.sub config.guess
 
13
 
 
14
override_dh_auto_configure:
 
15
        ln -sf /usr/share/misc/config.sub .
 
16
        ln -sf /usr/share/misc/config.guess .
 
17
        dh_auto_configure
 
18
 
 
19
override_dh_strip:
61
20
        dh_strip --dbg-package=pth-dbg
62
 
        dh_compress
63
 
        dh_fixperms
64
 
        dh_makeshlibs
65
 
        dh_installdeb
66
 
        dh_shlibdeps
67
 
        dh_gencontrol
68
 
        dh_md5sums
69
 
        dh_builddeb
70
 
 
71
 
binary-indep:
72
 
 
73
 
.PHONY: clean build install binary binary-arch binary-indep