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
|
#!/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
build: build-stamp
build-stamp:
dh_testdir
./configure --prefix=/usr --mandir=\$${prefix}/share/man --includedir=\$${prefix}/include/vdkxdb2
# Add here commands to compile the package.
$(MAKE)
$(MAKE) docs
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
# autotools-dev support
-test -r /usr/share/misc/config.sub && \
cp -f /usr/share/misc/config.sub config.sub
-test -r /usr/share/misc/config.guess && \
cp -f /usr/share/misc/config.guess config.guess
install: install-stamp
install-stamp: build
dh_testdir
dh_testroot
dh_clean
$(MAKE) DESTDIR=`pwd`/debian/libvdkxdb2-2c2 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 libvdkxdb2-dev libvdkxdb2-2c2
libvdkxdb2-2c2: build
dh_testdir -plibvdkxdb2-2c2
dh_testroot -plibvdkxdb2-2c2
dh_installdirs -plibvdkxdb2-2c2
# rm -rf debian/tmp/usr/bin \
# debian/tmp/usr/include
# dh_movefiles -plibvdkxdb2-2c2
dh_installdocs -plibvdkxdb2-2c2
# dh_undocumented
dh_installchangelogs -plibvdkxdb2-2c2 ChangeLog
dh_link -plibvdkxdb2-2c2
dh_strip -plibvdkxdb2-2c2
dh_compress -plibvdkxdb2-2c2
dh_fixperms -plibvdkxdb2-2c2
dh_installdeb -plibvdkxdb2-2c2
dh_shlibdeps -plibvdkxdb2-2c2
dh_gencontrol -plibvdkxdb2-2c2
dh_makeshlibs -plibvdkxdb2-2c2 -V 'libvdkxdb2-2c2 (>= 2.0.2-5.2)'
dh_md5sums -plibvdkxdb2-2c2
dh_builddeb -plibvdkxdb2-2c2
libvdkxdb2-dev: build
dh_testdir -plibvdkxdb2-dev
dh_testroot -plibvdkxdb2-dev
dh_clean -v -plibvdkxdb2-dev -k
dh_installdirs -plibvdkxdb2-dev
dh_movefiles -plibvdkxdb2-dev --sourcedir=debian/libvdkxdb2-2c2
# copy the examples
install -d \
debian/libvdkxdb2-dev/usr/share/doc/libvdkxdb2-dev/examples/testxdb
cp testxdb/* \
debian/libvdkxdb2-dev/usr/share/doc/libvdkxdb2-dev/examples/testxdb \
|| true
rm -f debian/libvdkxdb2-dev/usr/share/doc/libvdkxdb2-dev/examples/testxdb/COPYING
# man-page
dh_undocumented -plibvdkxdb2-dev vdkxdb-config-2.1
# copy documentation
install -d \
debian/libvdkxdb2-dev/usr/share/doc/libvdkxdb2-dev/html
cp doc/doxy/html/* \
debian/libvdkxdb2-dev/usr/share/doc/libvdkxdb2-dev/html
dh_installdocs -plibvdkxdb2-dev
dh_installchangelogs -plibvdkxdb2-dev ChangeLog
dh_link -plibvdkxdb2-dev
dh_strip -plibvdkxdb2-dev
dh_compress -plibvdkxdb2-dev
dh_fixperms -plibvdkxdb2-dev
dh_installdeb -plibvdkxdb2-dev
dh_shlibdeps -plibvdkxdb2-dev
dh_gencontrol -plibvdkxdb2-dev
dh_md5sums -plibvdkxdb2-dev
dh_builddeb -plibvdkxdb2-dev
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install
|