2
# Sample debian/rules that uses debhelper.
3
# GNU copyright 1997 to 1999 by Joey Hess.
5
# Uncomment this to turn on verbose mode.
8
# This is the debhelper compatability version to use.
11
# shared library versions, option 1
14
#option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so
15
#version=`ls .libs/lib*.so.* | \
16
# awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
17
#major=`ls .libs/lib*.so.* | \
18
# awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
23
# Add here commands to compile the package.
32
# Add here commands to clean up after the build process.
43
# Add here commands to install the package into debian/tmp.
44
$(MAKE) install DESTDIR=`pwd`/debian/tmp
47
# Build architecture-independent files here.
48
binary-indep: build install
49
# We have nothing to do by default.
51
# Build architecture-dependent files here.
52
binary-arch: build install
58
# build libeditline${major} package by moving files from editline-dev
60
dh_movefiles -plibeditline$(major) \
61
usr/lib/libeditline.so.$(major) \
62
usr/lib/libeditline.so.$(version)
69
rm -r debian/libeditline0/usr/share/man/
81
# You may want to make some executables suid here.
91
binary: binary-indep binary-arch
92
.PHONY: build clean binary-indep binary-arch binary install