3
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
4
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
6
ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
7
CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
9
CROSS= --build $(DEB_BUILD_GNU_TYPE)
16
rm -f config.guess config.sub
18
[ ! -f Makefile ] || $(MAKE) distclean
22
config.status: configure
25
ifneq "$(wildcard /usr/share/misc/config.guess)" ""
26
cp -f /usr/share/misc/config.guess config.guess
28
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
29
cp -f /usr/share/misc/config.sub config.sub
32
./configure $(CROSS) --prefix=/usr --mandir=\$${prefix}/share/man CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
35
build-stamp: config.status
47
$(MAKE) DESTDIR=$(CURDIR)/debian/imagination install
48
rm -f debian/imagination/usr/lib/imagination/*.la
55
dh_installchangelogs -XChangeLog
71
.PHONY: clean build install binary binary-arch binary-indep