update debian files for QT version
[mancala] / debian / rules
1 #!/usr/bin/make -f
2
3 # Uncomment this to turn on verbose mode.
4 export DH_VERBOSE=0
5
6 APPNAME := mancala
7
8 LD_LIBRARY_PATH := $(LD_LIBRARY_PATH):$(CURDIR)/debian/$(APPNAME)/opt/$(APPNAME)/lib
9
10 builddir:
11         mkdir -p builddir
12
13 builddir/Makefile: builddir
14         cd builddir && qmake-qt4 PREFIX=/opt/$(APPNAME) ../$(APPNAME).pro
15
16 build: build-stamp
17
18 build-stamp: builddir/Makefile
19         dh_testdir
20         # Add here commands to compile the package.
21         cd builddir && $(MAKE)
22         touch $@
23
24 clean:
25         dh_testdir
26         dh_testroot
27         rm -f build-stamp
28         # Add here commands to clean up after the build process.
29         rm -rf builddir
30         dh_clean 
31
32 install: build
33         dh_testdir
34         dh_testroot
35         dh_clean -k
36         dh_installdirs
37
38         # Add here commands to install the package into debian/your_appname
39         cd builddir && $(MAKE) INSTALL_ROOT=$(CURDIR)/debian/$(APPNAME) install
40         
41
42
43 # Build architecture-independent files here.
44 binary-indep: build install
45 # We have nothing to do by default.
46
47 # Build architecture-dependent files here.
48 binary-arch: build install
49         dh_testdir
50         dh_testroot
51         dh_install --sourcedir=debian/$(APPNAME)
52 #       dh_installdocs
53 #       dh_installexamples
54 #       dh_installman
55         dh_link
56 #       dh_strip --dbg-package=-dbg
57         dh_compress
58         dh_fixperms
59         dh_installdeb
60         echo $(LD_LIBRARY_PATH)
61         dh_shlibdeps
62         dh_gencontrol
63         dh_md5sums
64         dh_builddeb
65
66 binary: binary-indep binary-arch
67 .PHONY: build clean binary-indep binary-arch binary install configure
68