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