2
# debian/rules for the Debian libxau 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
# set this to the name of the main shlib's binary package
13
include debian/xsfbs/xsfbs.mk
16
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
21
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
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_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE)
39
test -d obj-$(DEB_BUILD_GNU_TYPE) || mkdir obj-$(DEB_BUILD_GNU_TYPE)
40
cd obj-$(DEB_BUILD_GNU_TYPE) && \
41
../configure --prefix=/usr --mandir=\$${prefix}/share/man \
42
--infodir=\$${prefix}/share/info $(confflags) \
44
cd obj-$(DEB_BUILD_GNU_TYPE) && $(MAKE)
53
rm -f config.cache config.log config.status
54
rm -f */config.cache */config.log */config.status
55
rm -f conftest* */conftest*
56
rm -rf autom4te.cache */autom4te.cache
67
cd obj-$(DEB_BUILD_GNU_TYPE) && $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
69
# Build architecture-dependent files here.
70
binary-arch: build install
75
dh_install --sourcedir=debian/tmp --list-missing --exclude=libSM.la
78
dh_strip --dbg-package=$(PACKAGE)-dbg
88
# Build architecture-independent files here.
89
binary-indep: build install
92
binary: binary-indep binary-arch
93
.PHONY: build clean binary-indep binary-arch binary install