Changed repo structure
[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         cd $(CURDIR)/src && $(MAKE) -j 4 INSTALL_ROOT=$(CURDIR)/debian/mdictionary install
32
33 binary-indep: build install
34
35 binary-arch: install
36         dh_maemo_package_icons
37         dh_testdir
38         dh_testroot
39         dh_strip
40         dh_compress
41         dh_fixperms
42         dh_installdeb
43         dh_shlibdeps
44         dh_gencontrol
45         dh_md5sums
46         dh_builddeb
47         dh_maemo_package_icons -r
48         
49 binary: binary-indep binary-arch
50 .PHONY: build clean binary-indep binary-arch binary install configure