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)))
16
config.status: configure
18
# Add here commands to configure the package.
19
./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
23
build-stamp: config.status
33
# Add here commands to clean up after the build process.
44
# Add here commands to install the package into debian/ncdu.
45
$(MAKE) DESTDIR=$(CURDIR)/debian/ncdu install
47
# Build architecture-independent files here.
48
binary-indep: build install
49
# We have nothing to do by default.
51
# Build architecture-dependent files here.
52
binary-arch: build install
55
dh_installchangelogs ChangeLog
57
dh_installman doc/ncdu.1
68
binary: binary-indep binary-arch
69
.PHONY: build clean binary-indep binary-arch binary install