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 CC_NORMAL = -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wconversion
15 CC_STRICT = $(CC_NORMAL) -W -Wbad-function-cast -Wcast-align -Wcast-qual -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wwrite-strings -ansi -pedantic
17 MY_DIR=/usr/local/ncurses6
18 MYDATA=/usr/local/ncurses/share/terminfo
22 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
27 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
32 configure: configure-stamp
36 RPATH_LIST=../lib:$(MY_DIR)/lib \
37 CFLAGS="$(CFLAGS)" ./configure \
38 --host=$(DEB_HOST_GNU_TYPE) \
39 --build=$(DEB_BUILD_GNU_TYPE) \
41 --with-default-terminfo-dir=$(MYDATA) \
42 --with-terminfo-dirs=$(MYDATA):/usr/share/terminfo \
63 --with-xterm-kbs=DEL \
71 build-stamp: configure-stamp
82 [ ! -f makefile ] || $(MAKE) distclean
84 rm -f configure-stamp build-stamp install-stamp
88 install: install-stamp
89 install-stamp: build-stamp
95 $(MAKE) install.libs install.progs DESTDIR=$(CURDIR)/debian/ncurses6
99 # Build architecture-independent files here.
100 binary-indep: build install
101 # No binary-indep target.
103 # Build architecture-dependent files here.
104 binary-arch: build install
107 dh_installchangelogs NEWS
117 binary: binary-indep binary-arch
118 .PHONY: build clean binary-indep binary-arch binary install install-stamp