~vibhavp/ubuntu/raring/libxcb/add-autopkgtest

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Julien Cristau, Steve Langasek, Julien Cristau
  • Date: 2011-06-08 23:21:10 UTC
  • mto: This revision was merged to the branch mainline in revision 26.
  • Revision ID: james.westby@ubuntu.com-20110608232110-3mi40a84n1rndp64
[ Steve Langasek ]
* Build for multiarch.

[ Julien Cristau ]
* Remove some unnecessary parts from debian/rules.  As a bonus, this should
  fix the build failure with DEB_BUILD_OPTIONS=nocheck (closes: #629691).

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
 
15
15
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
16
16
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
17
 
DEB_BUILDDIR = obj-$(DEB_BUILD_GNU_TYPE)
18
 
 
19
 
confflags = --build=$(DEB_BUILD_GNU_TYPE)
20
 
ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
21
 
        confflags += --host=$(DEB_HOST_GNU_TYPE)
22
 
endif
23
 
 
24
 
configure:
 
17
DEB_BUILDDIR = build
 
18
 
 
19
override_dh_auto_configure:
25
20
        autoreconf -vfi
26
 
 
27
 
$(DEB_BUILDDIR)/config.status: configure
28
 
        mkdir -p $(DEB_BUILDDIR)
29
 
        cd $(DEB_BUILDDIR) && \
30
 
        ../configure \
31
 
                $(confflags) \
32
 
                --prefix=/usr \
33
 
                CFLAGS="$(CFLAGS)"
34
 
 
35
 
override_dh_auto_configure: $(DEB_BUILDDIR)/config.status
36
 
 
37
 
check:
38
 
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
39
 
        $(MAKE) -C $(DEB_BUILDDIR) check
40
 
endif
41
 
 
42
 
override_dh_auto_test: check
43
 
 
44
 
.PHONY: build
45
 
build:
46
 
        dh $@
47
 
 
48
 
build-stamp:
49
 
        $(MAKE) -C $(DEB_BUILDDIR)
50
 
        >$@
51
 
 
52
 
override_dh_auto_build: build-stamp
53
 
 
54
 
.PHONY: install
55
 
install: build-stamp
56
 
        $(MAKE) -C $(DEB_BUILDDIR) install DESTDIR=$(CURDIR)/debian/tmp
57
 
 
58
 
override_dh_auto_install: install
 
21
        dh_auto_configure --builddirectory=$(DEB_BUILDDIR) -- CFLAGS="$(CFLAGS)"
 
22
 
 
23
%:
 
24
        dh $@ --builddirectory=$(DEB_BUILDDIR)
59
25
 
60
26
override_dh_strip:
61
27
        set -e; \
68
34
        dh_makeshlibs -plibxcb1 --add-udeb=libxcb1-udeb -- -c4
69
35
        dh_makeshlibs -Nlibxcb1 -- -c4
70
36
 
71
 
.PHONY: binary binary-arch binary-indep
72
 
binary: binary-arch
73
 
binary-arch: debian/copyright
74
 
        dh $@
75
 
 
76
 
binary-indep:
77
 
 
78
 
debian/copyright: debian/copyright.debian COPYING
79
 
        cat $+ > $@
 
37
override_dh_installdocs: debian/copyright.debian COPYING
 
38
        cat $+ > debian/copyright
 
39
        dh_installdocs
80
40
 
81
41
clean:
82
 
        dh $@
 
42
        dh $@ --builddirectory=$(DEB_BUILDDIR)
83
43
        -rm -f debian/copyright
84
44
        rm -f aclocal.m4 configure install-sh missing
85
45
        rm -f config.guess config.sub depcomp ltmain.sh src/config.h.in
86
 
        rm -f $$(find -name Makefile.in)
87
 
        rm -rf $(DEB_BUILDDIR)
88
 
        rm -f build-stamp
 
46
        find -name Makefile.in -delete