2 # Made with the aid of dh_make, by Craig Small
3 # Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
4 # Some lines taken from debmake, by Cristoph Lameter.
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)
14 CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS)
15 CFLAGS := $(shell dpkg-buildflags --get CFLAGS)
16 LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS)
20 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
25 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
30 configure: configure-stamp
34 cp -v package/dialog.map package/${ACTUAL_PROG}.map
36 CPPFLAGS="$(CPPFLAGS)" \
38 LDFLAGS="$(LDFLAGS)" \
40 --host=$(DEB_HOST_GNU_TYPE) \
41 --build=$(DEB_BUILD_GNU_TYPE) \
43 --mandir=\$${prefix}/share/man \
45 --enable-header-subdir \
48 --with-screen=ncursesw6 \
49 --with-package=${ACTUAL_PROG} \
50 --with-versioned-syms \
56 build-stamp: configure-stamp
67 [ ! -f makefile ] || $(MAKE) distclean
69 rm -f configure-stamp build-stamp install-stamp
73 install: install-stamp
74 install-stamp: build-stamp
80 $(MAKE) install DESTDIR=$(CURDIR)/debian/${ACTUAL_PROG}
84 # Build architecture-independent files here.
85 binary-indep: build install
86 # No binary-indep target.
88 # Build architecture-dependent files here.
89 binary-arch: build install
94 dh_installchangelogs CHANGES
105 binary: binary-indep binary-arch
106 .PHONY: build clean binary-indep binary-arch binary install install-stamp