last minute changes
[platform/upstream/libvorbis.git] / debian / rules
1 #!/usr/bin/make -f
2 # Sample debian/rules that uses debhelper.
3 # GNU copyright 1997 to 1999 by Joey Hess.
4
5 # Uncomment this to turn on verbose mode.
6 #export DH_VERBOSE=1
7
8 # This is the debhelper compatability version to use.
9 export DH_COMPAT=2
10
11 configure: configure-stamp
12 configure-stamp:
13         dh_testdir
14         # Add here commands to configure the package.
15
16         # If compiling cvs version change to ./autogen.sh --prefix=/usr 
17         ./configure --prefix=/usr
18
19         touch configure-stamp
20
21 build: configure-stamp build-stamp
22 build-stamp:
23         dh_testdir
24
25         # Add here commands to compile the package.
26         $(MAKE)
27
28         touch build-stamp
29
30 clean:
31         dh_testdir
32         dh_testroot
33         rm -f build-stamp configure-stamp
34
35         # Add here commands to clean up after the build process.
36         -$(MAKE) clean
37
38         dh_clean
39
40 install: build
41         dh_testdir
42         dh_testroot
43         dh_clean -k
44         dh_installdirs
45
46         # Add here commands to install the package into debian/tmp.
47         $(MAKE) install DESTDIR=`pwd`/debian/tmp
48
49
50 # Build architecture-independent files here.
51 binary-indep: build install
52 # We have nothing to do by default.
53
54 # Build architecture-dependent files here.
55 binary-arch: build install
56         dh_testdir
57         dh_testroot
58
59         dh_movefiles
60
61         dh_installdocs debian/tmp/usr/share/doc/libvorbis-1.0beta3/*
62         dh_installexamples
63         dh_installmanpages
64         dh_installchangelogs 
65         dh_link
66         dh_strip
67         dh_compress
68         dh_fixperms
69         dh_makeshlibs
70         dh_installdeb
71         dh_shlibdeps
72         dh_gencontrol
73         dh_md5sums
74         dh_builddeb
75
76 binary: binary-indep binary-arch
77 .PHONY: build clean binary-indep binary-arch binary install configure