Prepare for the maemo.org autobuilder.
[dorian] / pkg / maemo / rules
1 #!/usr/bin/make -f
2
3 APPNAME := dorian
4 builddir:
5         mkdir -p builddir
6
7 builddir/Makefile: builddir
8         cd builddir && qmake-qt4 PREFIX=/usr ../$(APPNAME).pro
9
10 build: build-stamp
11
12 build-stamp: builddir/Makefile
13         dh_testdir
14         # Add here commands to compile the package.
15         cd builddir && $(MAKE)
16         touch $@
17
18 clean:
19         dh_testdir
20         dh_testroot
21         rm -f build-stamp
22         # Add here commands to clean up after the build process.
23         rm -rf builddir
24         dh_clean
25
26 install: build
27         dh_testdir
28         dh_testroot
29         dh_clean -k
30         dh_installdirs
31         # Add here commands to install the package into debian/your_appname
32         cd builddir && $(MAKE) INSTALL_ROOT=$(CURDIR)/debian/$(APPNAME) install
33
34 # Build architecture-independent files here.
35 binary-indep: build install
36 # We have nothing to do by default.
37
38 # Build architecture-dependent files here.
39 binary-arch: build install
40         dh_testdir
41         dh_testroot
42         dh_installdocs
43         dh_installexamples
44         dh_installman
45         dh_link
46         dh_strip --dbg-package=my-application-dbg
47         dh_compress
48         dh_fixperms
49         dh_installdeb
50         dh_shlibdeps
51         dh_gencontrol
52         dh_md5sums
53         dh_builddeb
54
55 binary: binary-indep binary-arch
56
57 .PHONY: build clean binary-indep binary-arch binary install configure
58