Cleaned up some Debian stuff
[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         ./autogen.sh --prefix=/usr
17
18         touch configure-stamp
19
20 build: configure-stamp build-stamp
21 build-stamp:
22         dh_testdir
23
24         # Add here commands to compile the package.
25         $(MAKE)
26
27         touch build-stamp
28
29 clean:
30         dh_testdir
31         dh_testroot
32         rm -f build-stamp configure-stamp
33
34         # Add here commands to clean up after the build process.
35         -$(MAKE) clean
36
37         dh_clean
38
39 install: build
40         dh_testdir
41         dh_testroot
42         dh_clean -k
43         dh_installdirs
44
45         # Add here commands to install the package into debian/tmp.
46         $(MAKE) install DESTDIR=`pwd`/debian/tmp
47
48
49 # Build architecture-independent files here.
50 binary-indep: build install
51 # We have nothing to do by default.
52
53 # Build architecture-dependent files here.
54 binary-arch: build install
55 #       dh_testversion
56         dh_testdir
57         dh_testroot
58         #
59         # build libvorbis${major} package by moving files from vorbis-dev
60         #
61 #       dh_movefiles -plibvorbis$(major)             \
62 #       usr/lib/libvorbis.so.$(major)        \
63 #       usr/lib/libvorbis.so.$(version)
64
65         dh_movefiles
66
67 #       dh_installdebconf       
68         dh_installdocs doc/*.html doc/*.txt doc/*.png doc/vorbisfile/*.html
69         dh_installexamples
70 #       dh_installmenu
71 #       dh_installemacsen
72 #       dh_installpam
73 #       dh_installinit
74 #       dh_installcron
75         dh_installmanpages
76 #       dh_installinfo
77 #       dh_undocumented
78         dh_installchangelogs 
79         dh_link
80         dh_strip
81         dh_compress
82         dh_fixperms
83         # You may want to make some executables suid here.
84 #       dh_suidregister
85         dh_makeshlibs
86         dh_installdeb
87 #       dh_perl
88         dh_shlibdeps
89         dh_gencontrol
90         dh_md5sums
91         dh_builddeb
92
93 binary: binary-indep binary-arch
94 .PHONY: build clean binary-indep binary-arch binary install configure