2
2
# Uncomment this to turn on verbose mode.
6
# These are used for cross-compiling and for saving the configure script
7
# from having to guess our platform (since we know it already)
8
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
9
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
12
config.status: configure
14
# Add here commands to configure the package.
15
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
16
cp -f /usr/share/misc/config.sub config.sub
18
ifneq "$(wildcard /usr/share/misc/config.guess)" ""
19
cp -f /usr/share/misc/config.guess config.guess
21
./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"
29
build-stamp: config.status
32
# Add here commands to compile the package.
34
#docbook-to-man debian/darts.sgml > darts.1
43
# Add here commands to clean up after the build process.
44
[ ! -f Makefile ] || $(MAKE) clean
45
[ ! -f Makefile ] || rm Makefile
47
rm -f config.sub config.guess config.status config.log config.h stamp-h
57
# Add here commands to install the package into debian/darts.
58
$(MAKE) DESTDIR=$(CURDIR)/debian/darts pkglibexecdir=\$${prefix}/bin install
61
# Build architecture-independent files here.
62
binary-indep: build install
63
# We have nothing to do by default.
65
# Build architecture-dependent files here.
66
binary-arch: build install
69
dh_installchangelogs ChangeLog
5
export DEB_BUILD_MAINT_OPTIONS := hardening=+all,-pie
10
override_dh_auto_configure:
74
15
dh_compress -X.html,.css
82
binary: binary-indep binary-arch
83
.PHONY: build clean binary-indep binary-arch binary install