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)
9 include /usr/share/quilt/quilt.make
12 build-stamp: $(QUILT_STAMPFN)
14 cp -f /usr/share/misc/config.sub config.sub
15 cp -f /usr/share/misc/config.guess config.guess
16 ./configure $(confflags) --prefix=/usr \
17 --mandir=\$${prefix}/share/man \
18 --infodir=\$${prefix}/share/info
25 rm -f build-stamp config.sub config.guess
26 [ ! -f Makefile ] || $(MAKE) distclean
27 #Really clean the po directory
35 $(MAKE) DESTDIR=$(CURDIR)/debian/ap-utils install
37 binary-indep: build install
39 binary-arch: build install
42 dh_installchangelogs ChangeLog
44 iconv -f koi8-u -t utf-8 README \
45 > $(CURDIR)/debian/ap-utils/usr/share/doc/ap-utils/README
46 iconv -f koi8-u -t utf-8 Documentation/Ukrainian/README \
47 > $(CURDIR)/debian/ap-utils/usr/share/doc/ap-utils/README.uk
57 dh_link usr/share/man/man8/ap-mrtg.8 usr/share/man/man8/ap-rrd.8
68 binary: binary-indep binary-arch
69 .PHONY: build clean binary-indep binary-arch binary install