2
# debian/rules for the Debian x11proto-resource-dev package.
3
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>
4
# Copyright © 2005 Daniel Stone <daniel@fooishbar.org>
6
# Uncomment this to turn on verbose mode.
9
PACKAGE = x11proto-resource-dev
12
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
17
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
21
DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
22
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
23
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
24
ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
25
confflags += --build=$(DEB_HOST_GNU_TYPE)
27
confflags += --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE)
35
mkdir obj-$(DEB_BUILD_GNU_TYPE)
36
cd obj-$(DEB_BUILD_GNU_TYPE) && \
37
../configure --prefix=/usr --mandir=\$${prefix}/share/man \
38
--infodir=\$${prefix}/share/info --disable-shared \
39
$(confflags) CFLAGS="$(CFLAGS)"
40
cd obj-$(DEB_BUILD_GNU_TYPE) && $(MAKE)
49
rm -f config.cache config.log config.status
50
rm -f */config.cache */config.log */config.status
51
rm -f conftest* */conftest*
52
rm -rf autom4te.cache */autom4te.cache
63
cd obj-$(DEB_BUILD_GNU_TYPE) && $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
65
# Build architecture-independent files here.
66
binary-indep: build install
72
dh_install --sourcedir=debian/tmp
84
# Build architecture-dependent files here.
85
binary-arch: build install
88
binary: binary-indep binary-arch
89
.PHONY: build clean binary-indep binary-arch binary install