2
# debian/rules for the Debian xfonts-utils 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 = xfonts-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
SUBDIRS="bdftopcf-X11R7.0-1.0.0 mkfontdir-X11R7.0-1.0.1 mkfontscale-X11R7.0-1.0.1 font-util-X11R7.0-1.0.0"
20
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
25
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
29
DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
30
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
31
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
32
ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
33
confflags += --build=$(DEB_HOST_GNU_TYPE)
35
confflags += --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE)
39
build: genscripts patch build-stamp
42
for FILE in "$(SUBDIRS)"; do \
43
mkdir "$$FILE"-obj-$(DEB_BUILD_GNU_TYPE); \
44
(cd "$$FILE"-obj-$(DEB_BUILD_GNU_TYPE) && \
45
../"$$FILE"/configure --prefix=/usr --mandir=\$${prefix}/share/man \
46
--infodir=\$${prefix}/share/info $(confflags) \
47
--with-mapdir=\$${prefix}/share/fonts/X11/util \
48
CFLAGS="$(CFLAGS)" && \
59
rm -f config.cache config.log config.status
60
rm -f */config.cache */config.log */config.status
61
rm -f conftest* */conftest*
62
rm -rf autom4te.cache */autom4te.cache
73
for FILE in "$(SUBDIRS)"; do \
74
cd "$$FILE"-obj-$(DEB_BUILD_GNU_TYPE) && $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install ; \
78
# Build architecture-dependent files here.
79
binary-arch: build install
84
dh_install --sourcedir=debian/tmp --fail-missing
97
# Build architecture-independent files here.
98
binary-indep: build install
101
binary: binary-indep binary-arch
102
.PHONY: build clean binary-indep binary-arch binary install