New version 0.4.6.
[dorian] / pkg / maemo / rules
1 #!/usr/bin/make -f
2
3 APPNAME := dorian
4
5 build: 
6         qmake PREFIX=/usr $(APPNAME).pro && make
7
8 clean:
9         dh_testdir
10         dh_testroot
11         dh_clean
12
13 install: build
14         dh_testdir
15         dh_testroot
16         dh_clean -k
17         dh_installdirs
18         $(MAKE) INSTALL_ROOT=$(CURDIR)/debian/tmp install
19
20 # Build architecture-independent files here.
21 binary-indep: build install
22         # Nothing to do.
23
24 # Build architecture-dependent files here.
25 binary-arch: build install
26         dh_testdir
27         dh_testroot
28         dh_installdocs
29         dh_installexamples
30         dh_installman
31         dh_link
32         dh_strip --dbg-package=dorian-dbg
33         dh_compress
34         dh_fixperms
35         dh_installdeb
36         dh_shlibdeps
37         dh_gencontrol
38         # maemo-optify dorian debian/tmp
39         dh_md5sums
40         dh_builddeb
41
42 binary: binary-indep binary-arch
43
44 .PHONY: build clean binary-indep binary-arch binary install configure
45