Import Debian changes 1.22-1
[cascardo/sendxmpp.git] / debian / rules
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3
4 # Uncomment this to turn on verbose mode.
5 #export DH_VERBOSE=1
6
7 CFLAGS = -Wall -g
8
9 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
10         CFLAGS += -O0
11 else
12         CFLAGS += -O2
13 endif
14
15 configure: configure-stamp
16 configure-stamp:
17         dh_testdir
18
19         touch configure-stamp
20
21 build: build-arch build-indep
22 build-arch: build-stamp
23 build-indep: build-stamp
24
25 build-stamp: configure-stamp 
26         dh_testdir
27
28         pod2man sendxmpp > sendxmpp.1
29
30         touch build-stamp
31
32 clean:
33         dh_testdir
34         dh_testroot
35         rm -f build-stamp configure-stamp
36
37         rm -f sendxmpp.1
38
39         dh_clean 
40
41 install: build
42         dh_testdir
43         dh_testroot
44         dh_prep
45         dh_installdirs
46
47         install sendxmpp debian/sendxmpp/usr/bin/
48         install -m 422 sendxmpp.1 debian/sendxmpp/usr/share/man/man1/
49
50
51 # Build architecture-independent files here.
52 binary-arch: build install
53 # We have nothing to do by default.
54
55 # Build architecture-dependent files here.
56 binary-indep: build install
57         dh_testdir
58         dh_testroot
59         dh_installchangelogs Changes
60         dh_installdocs
61         dh_installexamples
62         dh_installman
63         dh_link
64         dh_strip
65         dh_compress
66         dh_fixperms
67         dh_perl
68         dh_installdeb
69         dh_shlibdeps
70         dh_gencontrol
71         dh_md5sums
72         dh_builddeb
73
74 binary: binary-indep binary-arch
75 .PHONY: build clean binary-indep binary-arch binary install configure