3
# Sample debian/rules that uses debhelper.
4
# GNU copyright 1997 to 1999 by Joey Hess.
6
# Uncomment this to turn on verbose mode.
9
include /usr/share/dpatch/dpatch.make
13
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
18
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
22
# shared library versions, option 1
25
# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so
26
#version=`ls src/.libs/lib*.so.* | \
27
# awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
28
#major=`ls src/.libs/lib*.so.* | \
29
# awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
31
configure: configure-stamp
34
# Add here commands to configure the package.
40
build-stamp: patch-stamp configure-stamp
43
# Add here commands to compile the package.
51
rm -f build-stamp configure-stamp
53
# Add here commands to clean up after the build process.
64
# Add here commands to install the package into debian/tmp
65
mkdir -p $(CURDIR)/debian/tmp/usr/lib
66
mkdir -p $(CURDIR)/debian/tmp/usr/include
67
$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
70
# Build architecture-independent files here.
71
binary-indep: build install
72
# We have nothing to do by default.
74
# Build architecture-dependent files here.
75
binary-arch: build install
81
dh_install --sourcedir=debian/tmp
105
binary: binary-indep binary-arch
106
.PHONY: build clean binary-indep binary-arch binary install configure