Process all window updates before executing next timeout. Fixes: NB#54146.
[hildon] / debian / rules
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3 # Sample debian/rules that uses debhelper.
4 # GNU copyright 1997 to 1999 by Joey Hess.
5
6 # Uncomment this to turn on verbose mode.
7 #export DH_VERBOSE=1
8
9 SOURCE_DIR=$(CURDIR)
10
11 # These are used for cross-compiling and for saving the configure script
12 # from having to guess our platform (since we know it already)
13 DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
14 DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
15
16
17 CFLAGS = -Wall -g
18
19 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
20         CFLAGS += -O0
21 else
22         CFLAGS += -O2
23 endif
24
25 # Use soft-float and thumb mode if it enabled. 
26 ifneq (,$(findstring thumb,$(DEB_BUILD_OPTIONS)))
27         CFLAGS += -mthumb
28 endif
29
30 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
31         INSTALL_PROGRAM += -s
32 endif
33
34 # shared library versions, option 1
35 # version=0.0.0 
36 # major=0
37 # option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so
38 version=`ls src/.libs/lib*.so.* | \
39 awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
40
41 major=`ls src/.libs/lib*.so.* | \
42 awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
43
44 config.status: $(SOURCE_DIR)/configure
45         dh_testdir
46 #       Add here commands to configure the package.
47         CFLAGS="$(CFLAGS)" ./configure              \
48                --host=$(DEB_HOST_GNU_TYPE)          \
49                --build=$(DEB_BUILD_GNU_TYPE)        \
50                --prefix=/usr                        \
51                --mandir=\$${prefix}/share/man       \
52                --infodir=\$${prefix}/share/info     \
53                --with-doc-dir=\$${prefix}/share/doc \
54                --disable-dependency-tracking        \
55                --disable-gtk-doc
56
57 $(SOURCE_DIR)/configure:
58         AUTOGEN_SUBDIR_MODE=1 NOCONFIGURE=yes $(SOURCE_DIR)/autogen.sh
59
60
61 build: build-stamp
62 build-stamp:  config.status
63         dh_testdir
64 #       Add here commands to compile the package.
65         $(MAKE)
66         touch build-stamp
67
68 clean:
69         dh_testdir
70         dh_testroot
71         rm -f build-stamp 
72         rm -rf debian/build
73 #       Add here commands to clean up after the build process.
74         -$(MAKE) distclean
75 ifneq "$(wildcard /usr/share/misc/config.sub)" ""
76         cp -f /usr/share/misc/config.sub config.sub
77 endif
78 ifneq "$(wildcard /usr/share/misc/config.guess)" ""
79         cp -f /usr/share/misc/config.guess config.guess
80 endif
81         dh_clean 
82
83
84 install: build
85         dh_testdir
86         dh_testroot
87         dh_clean -k 
88         dh_installdirs
89
90 #       Add here commands to install the package into debian/build
91         $(MAKE) install DESTDIR=$(CURDIR)/debian/build
92
93         ln -s -f libhildon-1.so $(CURDIR)/debian/build/usr/lib/libhildon_1.so 
94         ln -s -f libhildon-1.so.0 $(CURDIR)/debian/build/usr/lib/libhildon_1.so.0
95         ln -s -f libhildon-1.so.0.0.0 $(CURDIR)/debian/build/usr/lib/libhildon_1.so.0.0.0 
96
97 #       for the -dbg package
98         rm -rf $(CURDIR)/debian/build/usr/lib/debug
99 #       -mkdir -p $(CURDIR)/debian/build/usr/lib/debug
100 #       -cp -vd $(CURDIR)/debian/build/usr/lib/lib*.so* $(CURDIR)/debian/build/usr/lib/debug
101
102
103 # Build architecture-independent files here.
104 binary-indep: build install
105 # We have nothing to do by default.
106
107 # Build architecture-dependent files here.
108 binary-arch: build install
109         dh_testdir
110         dh_testroot
111         dh_installdocs
112         dh_installchangelogs 
113 #       dh_installexamples
114         @if [ -d debian/build/usr/share/gtk-doc ]; then         \
115           echo "Installing gtk-doc" ;                           \
116           dh_install --sourcedir=debian/build -v ;              \
117         else                                                    \
118           echo "Skipping gtk-doc" ;                             \
119           dh_install --sourcedir=debian/build -v -Xgtk-doc ;    \
120         fi
121         dh_installman
122         dh_link
123         dh_strip --dbg-package="libhildon1"
124         dh_compress
125         dh_fixperms
126         dh_makeshlibs -V "libhildon1 (>= 1.0.11)" 
127         dh_installdeb
128         dh_shlibdeps
129         dh_gencontrol
130         dh_md5sums
131         dh_builddeb
132
133 binary: binary-indep binary-arch
134 .PHONY: build clean binary-indep binary-arch binary install