2 # debian/rules for the Debian x11proto-kb-dev 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 PACKAGE = x11proto-kb-dev
12 include debian/xsfbs/xsfbs.mk
15 ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
20 ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
21 NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
22 MAKEFLAGS += -j$(NUMJOBS)
25 DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
26 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
27 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
28 ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
29 confflags += --build=$(DEB_HOST_GNU_TYPE)
31 confflags += --build=$(DEB_HOST_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE)
32 # confflags += --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE)
41 mkdir -p obj-$(DEB_BUILD_GNU_TYPE)
42 cd obj-$(DEB_BUILD_GNU_TYPE) && \
43 ../configure --prefix=/usr --mandir=\$${prefix}/share/man \
44 --infodir=\$${prefix}/share/info --disable-shared \
45 $(confflags) CFLAGS="$(CFLAGS)"
46 cd obj-$(DEB_BUILD_GNU_TYPE) && $(MAKE)
55 rm -f config.cache config.log config.status config.guess config.sub
56 rm -f */config.cache */config.log */config.status */config.guess */config.sub
57 rm -f conftest* */conftest*
58 rm -rf autom4te.cache */autom4te.cache
60 rm -f aclocal.m4 configure install-sh missing mkinstalldirs
61 find -name Makefile.in -exec rm -f {} \;
62 #find -name Makefile.in -delete
72 cd obj-$(DEB_BUILD_GNU_TYPE) && $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
74 # Build architecture-independent files here.
75 binary-indep: build install
81 dh_install --sourcedir=debian/tmp --list-missing
82 # dh_installchangelogs
93 # Build architecture-dependent files here.
94 binary-arch: build install
97 binary: binary-indep binary-arch
98 .PHONY: build clean binary-indep binary-arch binary install