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