2
# debian/rules for the Debian xutils 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
11
PACKAGE = x11-xserver-utils
13
include debian/xsfbs/xsfbs.mk
15
# This package contains multiple modules as shipped by upstream. Each module is # contained in a subdirectory in the root dir of the package. You must list each
16
# subdirectory explicitly so that the build system knows what to build
17
DEF_SUBDIRS=iceauth rgb sessreg xcmsdb xgamma xhost xmodmap xrandr xrdb xrefresh xset xsetmode xsetpointer xsetroot xstdcmap xtrap xvidtune
18
SUBDIRS=$(DEF_SUBDIRS)
21
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
26
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
30
DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
31
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
32
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
33
ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
34
confflags += --build=$(DEB_HOST_GNU_TYPE)
36
confflags += --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE)
40
build: genscripts patch build-stamp
43
for FILE in $(DEF_SUBDIRS); do \
45
mkdir "$$FILE"-obj-$(DEB_BUILD_GNU_TYPE); \
46
(cd "$$FILE"-obj-$(DEB_BUILD_GNU_TYPE) && \
47
../"$$FILE"/configure --prefix=/usr --mandir=\$${prefix}/share/man \
48
--infodir=\$${prefix}/share/info $(confflags) \
52
MANCONF="/etc/manpath.config" && \
63
rm -f config.cache config.log config.status
64
rm -f */config.cache */config.log */config.status
65
rm -f conftest* */conftest*
66
rm -rf autom4te.cache */autom4te.cache
77
for FILE in $(SUBDIRS); do \
78
cd "$$FILE"-obj-$(DEB_BUILD_GNU_TYPE) && $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install ; \
82
# Build architecture-dependent files here.
83
binary-arch: build install
88
dh_install --sourcedir=debian/tmp -Xrgb.txt --list-missing
102
# Build architecture-independent files here.
103
binary-indep: build install
106
binary: binary-indep binary-arch
107
.PHONY: build clean binary-indep binary-arch binary install