Import Debian changes 1.18-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
22 build: build-stamp
23
24 build-stamp: configure-stamp 
25         dh_testdir
26
27         pod2man sendxmpp > sendxmpp.1
28
29         touch build-stamp
30
31 clean:
32         dh_testdir
33         dh_testroot
34         rm -f build-stamp configure-stamp
35
36         rm -f sendxmpp.1
37
38         dh_clean 
39
40 install: build
41         dh_testdir
42         dh_testroot
43         dh_prep
44         dh_installdirs
45
46         install sendxmpp debian/sendxmpp/usr/bin/
47         install -m 422 sendxmpp.1 debian/sendxmpp/usr/share/man/man1/
48
49
50 # Build architecture-independent files here.
51 binary-arch: build install
52 # We have nothing to do by default.
53
54 # Build architecture-dependent files here.
55 binary-indep: build install
56         dh_testdir
57         dh_testroot
58         dh_installchangelogs Changes
59         dh_installdocs
60         dh_installexamples
61         dh_installman
62         dh_link
63         dh_strip
64         dh_compress
65         dh_fixperms
66         dh_perl
67         dh_installdeb
68         dh_shlibdeps
69         dh_gencontrol
70         dh_md5sums
71         dh_builddeb
72
73 binary: binary-indep binary-arch
74 .PHONY: build clean binary-indep binary-arch binary install configure