2 # debian/rules for libmpdclient
4 # Written by Sebastian Harl <tokkee@debian.org>
6 # Uncomment this to turn on verbose mode.
9 # These are used for cross-compiling and for saving the configure script
10 # from having to guess our platform (since we know it already)
11 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
12 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
16 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
22 config.status: configure
26 --host=$(DEB_HOST_GNU_TYPE) \
27 --build=$(DEB_BUILD_GNU_TYPE) \
29 --mandir=\$${prefix}/share/man \
34 build-stamp: config.status
46 [ ! -f Makefile ] || $(MAKE) distclean
56 $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
58 # we do not want .la files in Debian
59 rm -f debian/tmp/usr/lib/libmpdclient.la
61 # these files do not include any useful content
62 rm -f debian/tmp/usr/share/doc/libmpdclient/README
63 rm -f debian/tmp/usr/share/doc/libmpdclient/COPYING
65 # install that file as changelog instead
66 rm -f debian/tmp/usr/share/doc/libmpdclient/NEWS
68 dh_install --sourcedir=debian/tmp --fail-missing
70 binary-indep: build install
73 dh_installchangelogs -i NEWS
74 dh_installdocs -i -A AUTHORS
82 binary-arch: build install
85 dh_installchangelogs -a NEWS
86 dh_installdocs -a -A AUTHORS
88 dh_strip -a --dbg-package=libmpdclient2-dbg
98 binary: binary-indep binary-arch
99 .PHONY: build clean binary-indep binary-arch binary install