2 # debian/rules for the Debian xserver-xorg-input-gesture package.
3 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>
4 # Copyright © 2005 Daniel Stone <daniel@fooishbar.org>
5 # Copyright © 2005 David Nusinow <dnusinow@debian.org>
7 # Uncomment this to turn on verbose mode.
10 include debian/xsfbs/xsfbs.mk
13 LDFLAGS += -Wl,--hash-style=both -Wl,--as-needed
14 ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
19 ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
20 NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
21 MAKEFLAGS += -j$(NUMJOBS)
24 DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
25 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
26 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
27 ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
28 confflags += --build=$(DEB_HOST_GNU_TYPE)
30 confflags += --build=$(DEB_HOST_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE)
31 # confflags += --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE)
34 # kbd_drv.a isn't phenomenally useful; kbd_drv.so more so
35 confflags += --disable-static
37 #configure: $(STAMP_DIR)/patch
42 obj-$(DEB_BUILD_GNU_TYPE)/config.status: configure
43 mkdir -p obj-$(DEB_BUILD_GNU_TYPE)
44 cd obj-$(DEB_BUILD_GNU_TYPE) && \
45 ../configure --prefix=/usr --mandir=\$${prefix}/share/man \
46 --infodir=\$${prefix}/share/info $(confflags) \
51 build-stamp: obj-$(DEB_BUILD_GNU_TYPE)/config.status
53 cd obj-$(DEB_BUILD_GNU_TYPE) && $(MAKE)
61 rm -f config.cache config.log config.status
62 rm -f */config.cache */config.log */config.status
63 rm -f conftest* */conftest*
64 rm -rf autom4te.cache */autom4te.cache
66 rm -f $$(find -name Makefile.in)
67 rm -f compile config.guess config.sub configure depcomp install-sh
68 rm -f ltmain.sh missing INSTALL aclocal.m4 ylwrap mkinstalldirs config.h.in
78 cd obj-$(DEB_BUILD_GNU_TYPE) && $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
80 # Build architecture-dependent files here.
81 binary-arch: build install serverabi
86 dh_installchangelogs ChangeLog
87 dh_install --sourcedir=debian/tmp --list-missing --exclude=usr/share/man/man4
90 dh_strip --dbg-package=xserver-xorg-input-gesture-dbg
94 # dh_shlibdeps -- --warnings=6
100 # Build architecture-independent files here.
101 binary-indep: build install
104 binary: binary-indep binary-arch
105 .PHONY: build clean binary-indep binary-arch binary install