Fixed packages generation
[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         touch $@
16
17 clean:
18         dh_testdir
19         dh_testroot
20         rm -f build-stamp configure-stamp
21         if test -f $(CURDIR)/Makefile ; then \
22                 $(MAKE) distclean; \
23         fi
24         dh_clean
25
26 install:
27         dh_testdir
28         dh_testroot
29         dh_clean -k
30         dh_installdirs
31         INSTALL_ROOT=$(CURDIR)/debian/tmp $(MAKE) install
32
33 binary-indep: build install
34
35 binary-arch: install
36         dh_testdir
37         dh_testroot
38         if [ -e $(CURDIR)/debian/tmp/usr/share/applications/mdictionary.desktop ] ; then \
39                 sed -i -e 's/.*mdictionary.desktop/usr\/share\/applications\/mdictionary.desktop/g' $(CURDIR)/debian/mdictionary.install ;\
40         else \
41                 sed -i -e 's/.*mdictionary.desktop/usr\/share\/applications\/hildon\/mdictionary.desktop/g' $(CURDIR)/debian/mdictionary.install ;\
42         fi
43         dh_install --sourcedir=$(CURDIR)/debian/tmp
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 #       dh_maemo_package_icons -r
53         
54 binary: binary-indep binary-arch
55 .PHONY: build clean binary-indep binary-arch binary install configure