3
# Sample debian/rules that uses debhelper.
4
# This file was originally written by Joey Hess and Craig Small.
5
# As a special exception, when this file is copied by dh-make into a
6
# dh-make output file, you may use that output file without restriction.
7
# This special exception was added by Craig Small in version 0.37 of dh-make.
11
# Uncomment this to turn on verbose mode.
16
# These are used for cross-compiling and for saving the configure script
17
# from having to guess our platform (since we know it already)
18
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
19
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
21
ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
22
CROSS= --build $(DEB_HOST_GNU_TYPE)
24
CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
29
INSTALL_FILE = $(INSTALL) -p -o root -g root -m 644
30
INSTALL_PROGRAM = $(INSTALL) -p -o root -g root -m 755
31
INSTALL_SCRIPT = $(INSTALL) -p -o root -g root -m 755
32
INSTALL_DIR = $(INSTALL) -p -d -o root -g root -m 755
33
ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
38
ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS)))
41
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
42
NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
43
MAKEFLAGS += -j$(NUMJOBS)
46
config.status: configure
48
./configure $(CROSS) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
52
build-stamp: config.status
61
[ ! -f Makefile ] || $(MAKE) distclean
62
rm -f config.sub config.guess
70
$(MAKE) prefix=$(CURDIR)/debian/$(package)/usr install
72
# Build architecture-independent files here.
73
binary-indep: build install
74
# We have nothing to do by default.
76
# Build architecture-dependent files here.
77
binary-arch: build install
95
binary: binary-indep binary-arch
96
.PHONY: build clean binary-indep binary-arch binary install