3 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
4 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
8 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
14 ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
15 NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
16 MAKEFLAGS += -j$(NUMJOBS)
19 configure: configure-stamp
22 cp -f /usr/share/misc/config.sub config.sub
23 cp -f /usr/share/misc/config.guess config.guess
24 CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) \
25 --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr \
26 --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info \
31 build-stamp: configure
40 [ ! -f Makefile ] || $(MAKE) distclean
41 rm -rf build-stamp configure-stamp
42 # rm -f config.sub config.guess
50 $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
51 rm -f $(CURDIR)/debian/tmp/usr/bin/*_example
52 dh_install --fail-missing
54 binary-indep: build install
56 binary-arch: build install
62 dh_strip --dbg-package=libijs-dbg
67 dh_shlibdeps -V "libijs-0.35 (>= 0.35)"
72 binary: binary-indep binary-arch
73 .PHONY: build clean binary-indep binary-arch binary install configure