~ubuntu-branches/ubuntu/jaunty/xserver-xorg-video-sis/jaunty

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Brice Goglin
  • Date: 2009-02-03 23:27:02 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090203232702-bxyaq565lg8dnwkg
Tags: 1:0.10.1-1
* New upstream release.
* Build against xserver 1.6 rc1.
* Allow parallel builds.
* Run autoreconf on build; add build-deps on automake, libtool and
  xutils-dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
include debian/xsfbs/xsfbs.mk
11
11
 
12
12
CFLAGS = -Wall -g
13
 
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 
13
ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
14
14
        CFLAGS += -O0
15
15
else
16
16
        CFLAGS += -O2
17
17
endif
18
 
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
19
 
        INSTALL_PROGRAM += -s
 
18
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
 
19
        NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
 
20
        MAKEFLAGS += -j$(NUMJOBS)
20
21
endif
21
22
 
22
23
DEB_HOST_ARCH      ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
36
37
# kbd_drv.a isn't phenomenally useful; kbd_drv.so more so
37
38
confflags += --disable-static
38
39
 
39
 
build: patch build-stamp
40
 
build-stamp:
41
 
        dh_testdir
 
40
configure: $(STAMP_DIR)/patch
 
41
        autoreconf -vfi
42
42
 
43
 
        test -d obj-$(DEB_BUILD_GNU_TYPE) || mkdir obj-$(DEB_BUILD_GNU_TYPE)
 
43
obj-$(DEB_BUILD_GNU_TYPE)/config.status: configure
 
44
        mkdir -p obj-$(DEB_BUILD_GNU_TYPE)
44
45
        cd obj-$(DEB_BUILD_GNU_TYPE) && \
45
46
        ../configure --prefix=/usr --mandir=\$${prefix}/share/man \
46
47
                     --infodir=\$${prefix}/share/info $(confflags) \
47
48
                     CFLAGS="$(CFLAGS)" 
 
49
 
 
50
build: build-stamp
 
51
build-stamp: obj-$(DEB_BUILD_GNU_TYPE)/config.status
 
52
        dh_testdir
48
53
        cd obj-$(DEB_BUILD_GNU_TYPE) && $(MAKE)
49
 
 
50
 
        touch build-stamp
 
54
        >$@
51
55
 
52
56
clean: xsfclean
53
57
        dh_testdir
59
63
        rm -f conftest* */conftest*
60
64
        rm -rf autom4te.cache */autom4te.cache
61
65
        rm -rf obj-*
 
66
        rm -f $$(find -name Makefile.in)
 
67
        rm -f aclocal.m4 config.guess config.h.in config.sub configure
 
68
        rm -f depcomp install-sh ltmain.sh missing mkinstalldirs
62
69
 
63
70
        dh_clean
64
71