version 0.2
[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 #       cd builddir && qmake-qt4 PREFIX=/usr ../$(APPNAME).pro
28 build: build-stamp
29
30 build-stamp: builddir/Makefile
31         dh_testdir
32         cd builddir && $(MAKE)
33         touch $@
34
35 clean:
36         dh_testdir
37         dh_testroot
38         rm -f build-stamp
39         rm -rf builddir
40         dh_clean
41
42 install: build
43         dh_testdir
44         dh_testroot
45         dh_clean -k
46         dh_installdirs
47         cd builddir && $(MAKE) INSTALL_ROOT=$(CURDIR)/debian/$(APPNAME) install
48
49 binary-indep: build install
50
51 binary-arch: build install
52         dh_testdir
53         dh_testroot
54         dh_installdocs
55         dh_installexamples
56         dh_installman
57         dh_link
58         dh_strip
59         dh_compress
60         dh_fixperms
61         dh_installdeb
62         dh_shlibdeps
63         dh_gencontrol
64         dh_md5sums
65         dh_builddeb
66
67 binary: binary-indep binary-arch
68 .PHONY: build clean binary-indep binary-arch binary install configure