3
# These are used for cross-compiling and for saving the configure script
4
# from having to guess our platform (since we know it already)
5
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
6
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
10
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
15
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
19
autotools: autotools-stamp
21
-rm -f config.sub config.guess
22
ln -s /usr/share/misc/config.sub config.sub
23
ln -s /usr/share/misc/config.guess config.guess
26
config.status: autotools-stamp configure
30
--host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
31
--prefix=/usr --sysconfdir=/etc \
32
--localstatedir=/var --mandir=\$${prefix}/share/man \
38
build-stamp: config.status
48
rm -f autotools-stamp build-stamp
50
# Add here commands to clean up after the build process.
51
[ ! -f Makefile ] || $(MAKE) distclean
53
rm -f config.sub config.guess
63
$(MAKE) install DESTDIR=$(CURDIR)/debian/forked-daapd
66
# Nothing here, move along.
68
# Build architecture-dependent files here.
69
binary-arch: build install
72
dh_installchangelogs ChangeLog
75
dh_installinit -- defaults 25
88
binary: binary-indep binary-arch
89
.PHONY: build clean binary-indep binary-arch binary install autotools