]> mj.ucw.cz Git - sock.git/blob - debian/rules
Repackaged for Debian Squeeze
[sock.git] / debian / rules
1 #!/usr/bin/make -f
2 # Rules for building of sock Debian/UCW Package
3 # (c) 2001--2010 Martin Mares <mj@ucw.cz>
4
5 # Uncomment this to turn on verbose mode.
6 #export DH_VERBOSE=1
7
8 build: build-stamp
9 build-stamp:
10         dh_testdir
11         CFLAGS="-O2" ./configure --prefix=/usr
12         $(MAKE)
13         touch build-stamp
14
15 clean:
16         dh_testdir
17         dh_testroot
18         rm -f build-stamp
19         $(MAKE) distclean
20         dh_clean
21
22 binary-indep: build
23
24 binary-arch: build
25         dh_testdir
26         dh_testroot
27         dh_prep
28         dh_installdirs usr usr/bin usr/share/man/man1
29
30         $(MAKE) prefix=`pwd`/debian/sock/usr mandir=`pwd`/debian/sock/usr/share/man install
31
32         dh_installchangelogs
33         dh_strip
34 #       dh_compress
35         dh_fixperms
36         dh_installdeb
37         dh_shlibdeps
38         dh_gencontrol
39         dh_md5sums
40         dh_builddeb
41
42 binary: binary-indep binary-arch
43
44 .PHONY: build clean binary-indep binary-arch binary