Merge branch 'qml' of ssh://drop.maemo.org/git/mdictionary into qml
[mdictionary] / debian / rules
1 #!/usr/bin/make -f
2
3
4 configure: configure-stamp
5 configure-stamp:
6         dh_testdir
7         qmake-qt4
8         touch configure-stamp
9
10 build: build-stamp
11
12 build-stamp: configure-stamp
13         dh_testdir
14         $(MAKE)
15         $(MAKE) doc
16         touch $@
17
18 clean:
19         dh_testdir
20         dh_testroot
21         rm -f build-stamp configure-stamp
22         if test -f $(CURDIR)/Makefile ; then \
23                 $(MAKE) distclean; \
24         fi
25         dh_clean
26
27 install:
28         dh_testdir
29         dh_testroot
30         dh_clean -k
31         dh_installdirs
32         INSTALL_ROOT=$(CURDIR)/debian/tmp $(MAKE) install
33
34 binary-indep: build install
35
36 binary-arch: install
37         dh_testdir
38         dh_testroot
39         if [ -e $(CURDIR)/debian/tmp/usr/share/applications/mdictionary.desktop ] ; then \
40                 sed -i -e 's/.*mdictionary.desktop/usr\/share\/applications\/mdictionary.desktop/g' $(CURDIR)/debian/mdictionary.install ;\
41         else \
42                 sed -i -e 's/.*mdictionary.desktop/usr\/share\/applications\/hildon\/mdictionary.desktop/g' $(CURDIR)/debian/mdictionary.install ;\
43         fi
44         dh_install --sourcedir=$(CURDIR)/debian/tmp
45         dh_installdocs
46         dh_strip
47         dh_compress
48         dh_fixperms
49         dh_installdeb
50         dh_shlibdeps
51         dh_gencontrol
52         dh_md5sums
53         dh_builddeb
54 #       dh_maemo_package_icons -r
55         
56 binary: binary-indep binary-arch
57 .PHONY: build clean binary-indep binary-arch binary install configure