1f7b7fe9408521917f87e766c243a74a4a1f8378
[googlelatitude] / 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 := googlelatitude
13
14 CFLAGS = -Wall -g
15
16 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
17         CFLAGS += -O0
18 else
19         CFLAGS += -O2
20 endif
21
22 builddir:
23         mkdir -p builddir
24
25 builddir/Makefile: builddir
26         cd builddir && /opt/qt4-maemo5/bin/qmake-qt4 PREFIX=/usr ../$(APPNAME).pro
27 build: build-stamp
28
29 build-stamp: builddir/Makefile
30         dh_testdir
31         cd builddir && $(MAKE)
32         touch $@
33
34 clean:
35         dh_testdir
36         dh_testroot
37         rm -f build-stamp
38         rm -rf builddir
39         dh_clean
40
41 install: build
42         dh_testdir
43         dh_testroot
44         dh_clean -k
45         dh_installdirs
46         cd builddir && $(MAKE) INSTALL_ROOT=$(CURDIR)/debian/$(APPNAME) install
47
48 binary-indep: build install
49
50 binary-arch: build install
51         dh_testdir
52         dh_testroot
53         dh_installdocs
54         dh_installexamples
55         dh_installman
56         dh_link
57         dh_strip
58         dh_compress
59         dh_fixperms
60         dh_installdeb
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