release 0.7
[presencevnc] / debian / rules
1 #!/usr/bin/make -f
2
3 export DH_VERBOSE=1
4
5 #currently builds a maemo-only package
6
7 #comment this line for quick builds
8 buildlibs=foo
9
10 SOURCEDIR=./
11 BUILDDIR=debian/build/
12 ICONDIR=usr/share/icons/hicolor/
13 BINDIR=usr/bin/
14 DESKTOP_DIR=usr/share/applications/hildon/
15
16 build:
17         dh_testdir
18         install -d ${BUILDDIR}
19 ifdef buildlibs
20         cd libvnc && ./configure && cd libvncclient && make
21 endif
22         qmake-qt4 -after "DESTDIR=debian/build"
23         $(MAKE)
24         touch build
25
26 clean:
27         dh_testdir
28         dh_testroot
29         rm -f build
30         [ ! -f Makefile ] || $(MAKE) clean
31 ifdef buildlibs
32         [ ! -f libvnc/Makefile ] || ( cd libvnc && make clean )
33 endif
34         dh_clean
35         rm -rf ${BUILDDIR}
36
37 binary: binary-arch
38
39 binary-arch: build install
40         dh_testdir
41         dh_testroot
42         dh_installdocs
43         dh_installchangelogs
44         dh_strip
45         dh_compress
46         dh_fixperms
47         dh_installdeb
48         dh_shlibdeps
49         dh_gencontrol
50         dh_md5sums
51         dh_builddeb
52
53 binary-indep: build
54
55 install: build
56         dh_testdir
57         dh_testroot
58         dh_clean -k
59         dh_installdirs ${BINDIR}
60         dh_install ${BUILDDIR}presencevnc ${BINDIR}
61         dh_install presencevnc.desktop $(DESKTOP_DIR)
62         dh_install icons/48x48/presencevnc.png $(ICONDIR)48x48/apps
63         dh_install icons/64x64/presencevnc.png $(ICONDIR)64x64/apps
64         dh_install icons/26x26/presencevnc.png $(ICONDIR)26x26/apps
65
66 .PHONY: build clean binary-arch binary install