~ubuntu-branches/debian/squeeze/xserver-xorg-video-voodoo/squeeze

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Julien Cristau
  • Date: 2009-04-09 13:29:08 UTC
  • mfrom: (1.1.10 upstream) (0.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20090409132908-r0t99gdhinm4ul66
* Run autoreconf on build.
* Allow parallel builds.
* New upstream release.
* Upload to unstable.

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)
31
32
# kbd_drv.a isn't phenomenally useful; kbd_drv.so more so
32
33
confflags += --disable-static
33
34
 
34
 
build: patch build-stamp
35
 
build-stamp:
 
35
build: build-stamp
 
36
build-stamp: $(STAMP_DIR)/patch
36
37
        dh_testdir
37
38
 
38
 
        test -d obj-$(DEB_BUILD_GNU_TYPE) || mkdir obj-$(DEB_BUILD_GNU_TYPE)
 
39
        autoreconf -vfi
 
40
        mkdir -p obj-$(DEB_BUILD_GNU_TYPE)
39
41
        cd obj-$(DEB_BUILD_GNU_TYPE) && \
40
42
        ../configure --prefix=/usr --mandir=\$${prefix}/share/man \
41
43
                     --infodir=\$${prefix}/share/info $(confflags) \
42
44
                     CFLAGS="$(CFLAGS)" 
43
45
        cd obj-$(DEB_BUILD_GNU_TYPE) && $(MAKE)
44
 
 
45
 
        touch build-stamp
 
46
        >$@
46
47
 
47
48
clean: xsfclean
48
49
        dh_testdir
54
55
        rm -f conftest* */conftest*
55
56
        rm -rf autom4te.cache */autom4te.cache
56
57
        rm -rf obj-*
 
58
        rm -f aclocal.m4 config.guess config.sub config.h.in configure
 
59
        rm -f depcomp install-sh ltmain.sh missing mkinstalldirs
 
60
        rm -f $$(find -name Makefile.in)
57
61
 
58
62
        dh_clean
59
63