~ubuntu-branches/ubuntu/precise/xserver-xorg-input-vmmouse/precise-proposed

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Krzysztof Klimonda
  • Date: 2009-05-22 15:03:55 UTC
  • mfrom: (1.2.5 sid)
  • Revision ID: james.westby@ubuntu.com-20090522150355-r5ozt1torzvjin0d
Tags: 1:12.6.4-1ubuntu1
* Merge from debian unstable.
* New changes:
  - debian/control:
    + Add mdetect (<< 0.5.2.1ubuntu5) to Replaces: for seamless upgrade.
      This change may be removed after we drop Hardy support.
* Fixes bugs:
  - VMWare fusion host + vmmouse driver generates drag events on
    any click (LP: #366521)

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
include debian/xsfbs/xsfbs.mk
12
12
 
13
13
CFLAGS = -Wall -g
14
 
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 
14
ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
15
15
        CFLAGS += -O0
16
16
else
17
17
        CFLAGS += -O2
18
18
endif
19
 
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
20
 
        INSTALL_PROGRAM += -s
 
19
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
 
20
        NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
 
21
        MAKEFLAGS += -j$(NUMJOBS)
21
22
endif
22
23
 
23
24
DEB_HOST_ARCH      ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
32
33
# kbd_drv.a isn't phenomenally useful; kbd_drv.so more so
33
34
confflags += --disable-static
34
35
 
35
 
build: patch build-stamp
36
 
build-stamp:
 
36
configure: $(STAMP_DIR)/patch
 
37
        autoreconf -vfi
 
38
 
 
39
build: build-stamp
 
40
build-stamp: configure
37
41
        dh_testdir
38
42
 
39
43
        test -d obj-$(DEB_BUILD_GNU_TYPE) || mkdir obj-$(DEB_BUILD_GNU_TYPE)
40
44
        cd obj-$(DEB_BUILD_GNU_TYPE) && \
41
45
        ../configure --prefix=/usr --mandir=\$${prefix}/share/man \
42
46
                     --infodir=\$${prefix}/share/info $(confflags) \
43
 
                     CFLAGS="$(CFLAGS)" DRIVER_MAN_SUFFIX=4x DRIVER_MAN_DIR=\$$\(mandir\)/man4
 
47
                     CFLAGS="$(CFLAGS)"
44
48
        cd obj-$(DEB_BUILD_GNU_TYPE) && $(MAKE)
45
 
 
46
 
        touch build-stamp
 
49
        >$@
47
50
 
48
51
clean: xsfclean
49
52
        dh_testdir
55
58
        rm -f conftest* */conftest*
56
59
        rm -rf autom4te.cache */autom4te.cache
57
60
        rm -rf obj-*
 
61
        rm -f aclocal.m4 config.guess config.sub config.h.in configure
 
62
        rm -f depcomp install-sh ltmain.sh missing
 
63
        rm -f $$(find -name Makefile.in)
58
64
 
59
65
        dh_clean
60
66
 
73
79
 
74
80
        dh_installdocs README
75
81
        dh_installchangelogs ChangeLog
76
 
        dh_install --sourcedir=debian/tmp --list-missing --exclude=vmmouse_drv.la --exclude=usr/share/man/man4
77
 
        install -D -m 755 debian/hal-probe-vmmouse debian/xserver-xorg-input-vmmouse/usr/lib/hal/hal-probe-vmmouse
 
82
        dh_install --sourcedir=debian/tmp --list-missing --exclude=vmmouse_drv.la
78
83
        dh_installman
79
84
        dh_link
80
85
        dh_strip