4 export DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
5 export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
7 confflags += --host $(DEB_BUILD_GNU_TYPE) --build $(DEB_HOST_GNU_TYPE)
12 cp -f /usr/share/misc/config.sub config.sub
13 cp -f /usr/share/misc/config.guess config.guess
14 ./configure $(confflags) --prefix=/usr \
15 --mandir=\$${prefix}/share/man \
16 --infodir=\$${prefix}/share/info
23 rm -f build-stamp config.sub config.guess
25 #Really clean the po directory
33 $(MAKE) DESTDIR=$(CURDIR)/debian/ap-utils install
35 binary-indep: build install
37 binary-arch: build install
40 dh_installchangelogs ChangeLog
42 iconv -f koi8-u -t utf-8 README \
43 > $(CURDIR)/debian/ap-utils/usr/share/doc/ap-utils/README
44 iconv -f koi8-u -t utf-8 Documentation/Ukrainian/README \
45 > $(CURDIR)/debian/ap-utils/usr/share/doc/ap-utils/README.uk
66 binary: binary-indep binary-arch
67 .PHONY: build clean binary-indep binary-arch binary install