1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113
|
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
# This is the debhelper compatability version to use.
export DH_COMPAT=1
build: build-stamp
build-stamp:
dh_testdir
./configure --prefix=/usr \
--mandir=\$${prefix}/share/man \
--enable-static
# Add here commands to compile the package.
$(MAKE)
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp install-stamp
# Add here commands to clean up after the build process.
-$(MAKE) distclean
find . -name '*.o' -o -name '_libs' -o -name '*.lo' -o -name '*.a' -o -name '.deps' | xargs rm -rf
dh_clean
install: install-stamp
install-stamp: build
dh_testdir
dh_testroot
dh_clean
$(MAKE) prefix=`pwd`/debian/tmp/usr mandir=`pwd`/debian/tmp/usr/share/man install
touch install-stamp
# Build architecture-independent files here.
binary-indep:
# We have nothing to do by default.
# Build architecture-dependent files here.
binary-arch: build install libxdb-dev libxdb1c102
libxdb1c102: build
dh_testdir -plibxdb1c102
dh_testroot -plibxdb1c102
dh_installdirs -plibxdb1c102
rm -rf debian/tmp/usr/bin \
debian/tmp/usr/include
# dh_movefiles -plibxdb1c102
dh_installdocs -plibxdb1c102
# dh_undocumented
dh_installchangelogs -plibxdb1c102 ChangeLog
dh_link -plibxdb1c102
dh_strip -plibxdb1c102
dh_compress -plibxdb1c102
dh_fixperms -plibxdb1c102
dh_installdeb -plibxdb1c102
dh_shlibdeps -plibxdb1c102
dh_gencontrol -plibxdb1c102
dh_makeshlibs -plibxdb1c102
dh_md5sums -plibxdb1c102
dh_builddeb -plibxdb1c102
libxdb-dev: build
dh_testdir -plibxdb-dev
dh_testroot -plibxdb-dev
dh_clean -v -plibxdb-dev -k
dh_installdirs -plibxdb-dev
dh_movefiles -plibxdb-dev
# copy the examples
install -d \
debian/libxdb-dev/usr/share/doc/libxdb-dev/examples
cp examples/Makefile.am examples/*.cpp \
debian/libxdb-dev/usr/share/doc/libxdb-dev/examples
# copy xbase documentation
install -d \
debian/libxdb-dev/usr/share/doc/libxdb-dev/html
cp html/*.html html/*.jpg html/*.gif html/cvsdoc \
debian/libxdb-dev/usr/share/doc/libxdb-dev/html
dh_installdocs -plibxdb-dev
dh_undocumented -plibxdb-dev checkndx.1 \
copydbf.1 \
dbfutil1.1 \
deletall.1 \
checkndx.1 \
dumphdr.1 \
dumprecs.1 \
packdbf.1 \
reindex.1 \
undelall.1 \
zap.1
dh_installchangelogs -plibxdb-dev ChangeLog
dh_link -plibxdb-dev
dh_strip -plibxdb-dev
dh_compress -plibxdb-dev
dh_fixperms -plibxdb-dev
dh_installdeb -plibxdb-dev
dh_shlibdeps -plibxdb-dev
dh_gencontrol -plibxdb-dev
dh_makeshlibs -plibxdb-dev -V
dh_md5sums -plibxdb-dev
dh_builddeb -plibxdb-dev
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install
|