Optify as per maemo filesystem in rules files
[qquiz] / debian / rules
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3 # Sample debian/rules that uses debhelper.
4 # This file was originally written by Joey Hess and Craig Small.
5 # As a special exception, when this file is copied by dh-make into a
6 # dh-make output file, you may use that output file without restriction.
7 # This special exception was added by Craig Small in version 0.37 of dh-make.
8
9 # Uncomment this to turn on verbose mode.
10 #export DH_VERBOSE=1
11
12 APPNAME := qquiz
13 builddir:
14                 mkdir -p builddir
15
16 builddir/Makefile: builddir
17                 cd builddir && qmake PREFIX=/usr ../$(APPNAME).pro
18
19
20 build: build-stamp
21
22 build-stamp: builddir/Makefile
23         dh_testdir
24
25         # Add here commands to compile the package.
26         cd builddir && $(MAKE)
27         touch $@
28
29 clean:
30         dh_testdir
31         dh_testroot
32         rm -f build-stamp
33         rm -rf builddir
34
35         # Add here commands to clean up after the build process.
36
37         dh_clean
38
39 install: build
40         dh_testdir
41         dh_testroot
42         dh_clean -k
43         dh_installdirs
44
45         # Add here commands to install the package into debian/qquiz.
46         cd builddir && $(MAKE) INSTALL_ROOT=$(CURDIR)/debian/qquiz install
47
48
49 # Build architecture-independent files here.
50 binary-indep: build install
51 # We have nothing to do by default.
52
53 # Build architecture-dependent files here.
54 binary-arch: build install
55         dh_testdir
56         dh_testroot
57         dh_installdocs
58         dh_installman
59         dh_link
60         dh_strip
61         dh_compress
62         dh_fixperms
63 #       dh_perl
64 #       dh_makeshlibs
65         dh_installdeb
66         dh_shlibdeps
67         dh_gencontrol
68         maemo-optify
69         dh_md5sums
70         dh_builddeb
71
72 binary: binary-indep binary-arch
73 .PHONY: build clean binary-indep binary-arch binary install configure