]> git.decadent.org.uk Git - dak.git/blob - tools/dsync-0.0/debian/rules
Merge commit 'lamby/master' into merge
[dak.git] / tools / dsync-0.0 / debian / rules
1 #!/usr/bin/make -f
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 $
6
7
8 # Uncomment this to turn on verbose mode.
9 #export DH_VERBOSE=1
10
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)
13
14 # FOR AUTOCONF 2.13 ONLY
15 ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
16 #  confflags += --host=$(DEB_HOST_GNU_TYPE)
17 else
18   $(error Cannot cross-compile this package out-of-the-box)
19 endif
20
21 build: build-stamp
22 build-stamp: configure
23         dh_testdir
24         -mkdir build 
25         cd build; ../configure
26         cd ..
27         
28         # Add here commands to compile the package.
29         make
30         touch build-stamp
31
32 clean:
33         dh_testdir
34 #       dh_testroot
35         rm -f build-stamp
36         rm -rf build
37
38         # Add here commands to clean up after the build process.
39         -$(MAKE) clean
40         -$(MAKE) distclean
41         dh_clean
42
43 # Build architecture-independent files here.
44 binary-indep: build 
45 # We have nothing to do by default.
46
47 # Build architecture-dependent files here.
48 binary-arch: build dsync
49
50 dsync: build
51 #       dh_testversion -pdsync
52         dh_testdir -pdsync
53         dh_testroot -pdsync
54         dh_clean -pdsync -k
55         dh_installdirs -pdsync usr/bin usr/doc/dsync usr/lib usr/doc/dsync
56
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
61         
62         dh_installdocs -pdsync 
63         dh_installman -pdsync
64
65         dh_installchangelogs -pdsync
66         dh_strip -pdsync
67         dh_compress -pdsync
68         dh_fixperms -pdsync
69         dh_installdeb -pdsync
70         dh_makeshlibs -pdsync
71         dh_shlibdeps -pdsync
72         dh_gencontrol -pdsync
73         dh_md5sums -pdsync
74         dh_builddeb -pdsync
75
76 source diff:                                                                  
77         @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
78
79 configure:
80         make startup
81
82 binary: binary-indep binary-arch
83 .PHONY: build clean binary-indep binary-arch binary