Lines Matching +full:- +full:- +full:cross +full:- +full:bindir
1 #!/usr/bin/make -f
10 # These are used for cross-compiling and for saving the configure script
12 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
13 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
15 CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS)
16 CFLAGS := $(shell dpkg-buildflags --get CFLAGS)
17 LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS)
22 DEV_PACKAGE = $(ACTUAL_PROG)-dev
24 BINDIR = /usr/bin macro
31 CFLAGS += -O0
33 CFLAGS += -O2
36 INSTALL_PROGRAM += -s
40 configure: configure-stamp
41 configure-stamp:
44 cp -v package/dialog.map package/${ACTUAL_PROG}.map
50 --host=$(DEB_HOST_GNU_TYPE) \
51 --build=$(DEB_BUILD_GNU_TYPE) \
52 --prefix=/usr \
53 --mandir=\$${prefix}/share/man \
54 --enable-nls \
55 --enable-header-subdir \
56 --enable-widec \
57 --with-shared \
58 --with-screen=ncursesw6 \
59 --with-package=${ACTUAL_PROG} \
60 --with-versioned-syms \
61 --disable-rpath-hack
63 touch configure-stamp
65 build: build-stamp
66 build-stamp: configure-stamp
71 touch build-stamp
77 [ ! -f makefile ] || $(MAKE) distclean
79 rm -f configure-stamp build-stamp install-stamp
83 install: install-stamp
84 install-stamp: build-stamp
87 dh_clean -k
90 $(MAKE) install-full DESTDIR=$(TMP)
92 dh_install -p${ACTUAL_PROG} $(BINDIR)/$(ACTUAL_PROG)
93 dh_install -p${ACTUAL_PROG} $(LIBDIR)
94 dh_install -p${ACTUAL_PROG} $(LOCALE)
95 dh_install -p${ACTUAL_PROG} $(MANDIR)/man1
96 dh_install -p${DEV_PACKAGE} $(BINDIR)/$(ACTUAL_PROG)-config
97 dh_install -p${DEV_PACKAGE} $(MANDIR)/man3
98 dh_install -p${DEV_PACKAGE} $(HEADER)
103 [ -L "$$P" ] || continue; \
107 dh_link -p${DEV_PACKAGE} $(LIBDIR)/`readlink $$P` $(LIBDIR)/$$P ; \
111 dh_link -p${ACTUAL_PROG} $(LIBDIR)/`readlink $$P` $(LIBDIR)/$$P ; \
116 touch install-stamp
118 # Build architecture-independent files here.
119 binary-indep: build install
120 # No binary-indep target.
122 # Build architecture-dependent files here.
123 binary-arch: build install
139 binary: binary-indep binary-arch
140 .PHONY: build clean binary-indep binary-arch binary install install-stamp