Re-inserting stuff that got lost when moving changelog around
[kitchenalert] / debian / rules
1 #!/usr/bin/make -f
2 APPNAME := kitchenalert
3 PATH:=/usr/bin/dh7:/usr/bin:$(PATH)
4 export PATH
5 SBOX_REDIRECT_IGNORE=/usr/bin/perl
6 export SBOX_REDIRECT_IGNORE
7
8 builddir:
9         mkdir -p builddir
10
11 builddir/Makefile: builddir
12         cd builddir && qmake-qt4 PREFIX=/usr ../$(APPNAME).pro
13
14 build: build-stamp
15
16 build-stamp: builddir/Makefile
17         dh_testdir
18         # Add here commands to compile the package.
19         cd builddir && $(MAKE)
20         touch $@
21
22 clean:
23         dh_testdir
24         dh_testroot
25         rm -f build-stamp
26         # Add here commands to clean up after the build process.
27         rm -rf builddir
28         dh_clean
29 install: build
30         dh_testdir
31         dh_testroot
32         dh_clean -k
33         dh_installdirs
34
35         # Add here commands to install the package into debian/your_appname
36         cd builddir && $(MAKE) INSTALL_ROOT=$(CURDIR)/debian/$(APPNAME) install
37         
38         
39 # Build architecture-independent files here.
40 binary-indep: build install
41 # We have nothing to do by default.
42 #To install the icon and the sound file:
43         dh_install
44
45 # Build architecture-dependent files here.
46 binary-arch: build install
47         dh_testdir
48         dh_testroot
49         dh_installdocs
50         dh_installexamples
51         dh_installman
52         dh_link
53 #       dh_strip --dbg-package=urpo-dbg #causes failure!
54         dh_compress
55         dh_fixperms
56         dh_installdeb
57         dh_shlibdeps
58         dh_gencontrol
59         dh_md5sums
60         dh_builddeb
61
62
63
64 binary: binary-indep binary-arch
65 .PHONY: build clean binary-indep binary-arch binary install configure