2 # Made with the aid of dh_make, by Craig Small
3 # Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
4 # Some lines taken from debmake, by Christoph Lameter.
5 # $Id: rules,v 1.2 1999/01/18 02:38:15 jgg Exp $
8 # Uncomment this to turn on verbose mode.
11 export DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
12 export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
14 # FOR AUTOCONF 2.13 ONLY
15 ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
16 # confflags += --host=$(DEB_HOST_GNU_TYPE)
18 $(error Cannot cross-compile this package out-of-the-box)
22 build-stamp: configure
25 cd build; ../configure
28 # Add here commands to compile the package.
38 # Add here commands to clean up after the build process.
43 # Build architecture-independent files here.
45 # We have nothing to do by default.
47 # Build architecture-dependent files here.
48 binary-arch: build dsync
51 # dh_testversion -pdsync
55 dh_installdirs -pdsync usr/bin usr/doc/dsync usr/lib usr/doc/dsync
57 cp build/bin/dsync-* debian/dsync/usr/bin/
58 cp -a build/bin/libdsync.so.0.0.0 debian/dsync/usr/lib/
59 cp -a build/bin/libdsync.so.0.0 debian/dsync/usr/lib/
60 cp COPYING debian/dsync/usr/doc/dsync/copyright
62 dh_installdocs -pdsync
65 dh_installchangelogs -pdsync
77 @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
82 binary: binary-indep binary-arch
83 .PHONY: build clean binary-indep binary-arch binary