Bindings V2: reintroduce field 'info' for verbs
[src/app-framework-binder.git] / packaging / debian.rules
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3 # Uncomment this to turn on verbose mode.
4 export DH_VERBOSE=1
5
6 # These are used for cross-compiling and for saving the configure script
7 # from having to guess our platform (since we know it already)
8 DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
9 DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
10
11
12 CFLAGS = -Wall -g
13
14 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
15        CFLAGS += -O0
16 else
17        CFLAGS += -O2
18 endif
19 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
20        INSTALL_PROGRAM += -s
21 endif
22
23 configure: configure-stamp
24 configure-stamp:
25         dh_testdir
26         #
27         touch configure-stamp
28
29 build: build-stamp
30 build-stamp: configure-stamp
31         dh_testdir
32         mkdir -p build
33         cd build;cmake ../ -DCMAKE_INSTALL_PREFIX:PATH=/usr;$(MAKE)
34         #
35         touch build-stamp
36
37 clean:
38         #dh_testdir
39         dh_testroot
40         rm -f configure-stamp build-stamp
41         [ ! -f Makefile ] || $(MAKE) distclean
42         #dh_clean
43
44 install: build
45         dh_testdir
46         dh_testroot
47         dh_prep
48         dh_installdirs
49         # Add here commands to install the package into debian/tmp
50         [ -d build ] && cd build;make install DESTDIR=/usr/src/packages/BUILD/debian/tmp
51         # Move all files in their corresponding package
52         dh_install --list-missing -s --sourcedir=debian/tmp
53         # empty dependency_libs in .la files
54         #sed -i "/dependency_libs/ s/'.*'/''/" `find debian/ -name '*.la'`
55
56 # Build architecture-independent files here.
57 binary-indep: build install
58 # We have nothing to do by default.
59
60 # Build architecture-dependent files here.
61 binary-arch: build install
62         dh_testdir
63         dh_testroot
64         dh_installchangelogs
65         dh_installdocs
66         dh_installexamples
67         dh_installman
68         dh_link
69         #dh_strip
70         dh_compress
71         dh_fixperms
72         dh_makeshlibs -V
73         #dh_installdeb
74         dh_shlibdeps
75         dh_gencontrol
76         dh_md5sums
77         dh_builddeb
78
79 binary: binary-indep binary-arch
80 .PHONY: build clean binary-indep binary-arch binary install